1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test
Francesco Rodriguez b5bb35355d fix quoting for ActiveSupport::Duration instances
This patch fixes quoting for ActiveSupport::Duration instances:

    # before
    >> ActiveRecord::Base.connection.quote 30.minutes
    => "'--- 1800\n...\n'"

    # after
    >> ActiveRecord::Base.connection.quote 30.minutes
    => "1800"

Also, adds a test for type casting ActiveSupport::Duration instances.

Related to #1119.
2012-07-04 22:39:16 -05:00
..
active_record/connection_adapters Simplify AR configuration code. 2012-06-15 19:15:36 +01:00
assets
cases fix quoting for ActiveSupport::Duration instances 2012-07-04 22:39:16 -05:00
fixtures Improve the derivation of HABTM assocation join table names 2012-06-22 06:27:11 +01:00
migrations
models Remove some aggregation tests related to composed_of 2012-06-28 09:58:58 -03:00
schema fix: limit of enum columns of mysql 2012-06-28 03:15:43 +09:00
support
.gitignore
config.example.yml
config.rb