diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-07-04 22:39:16 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-07-04 22:39:16 -0500 |
commit | b5bb35355d68eab0343637980a231c8a4eb6093c (patch) | |
tree | 03d7d01990ba871f9c7e7491832b29755ffb9b96 /activerecord/test/cases/clone_test.rb | |
parent | a66f498955edf8e000751ffc38d42be307adcef5 (diff) | |
download | rails-b5bb35355d68eab0343637980a231c8a4eb6093c.tar.gz rails-b5bb35355d68eab0343637980a231c8a4eb6093c.tar.bz2 rails-b5bb35355d68eab0343637980a231c8a4eb6093c.zip |
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.
Diffstat (limited to 'activerecord/test/cases/clone_test.rb')
0 files changed, 0 insertions, 0 deletions