diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-06-29 15:09:11 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-06-29 15:09:11 -0600 |
commit | 9e368a5030728f054589efc3a0acc0f68265851b (patch) | |
tree | d7f3ae80f72c1278d95f3f7a412039e9a6f08465 /activerecord/lib/active_record/base.rb | |
parent | f123da507a703c3177c26a4f59cab53d81f4fa7c (diff) | |
download | rails-9e368a5030728f054589efc3a0acc0f68265851b.tar.gz rails-9e368a5030728f054589efc3a0acc0f68265851b.tar.bz2 rails-9e368a5030728f054589efc3a0acc0f68265851b.zip |
Simplify creation of default attributes on AR instance
`AttributeSet#dup` has all the behavior we need.
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 662c99269e..32e7c50588 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -9,6 +9,7 @@ require 'active_support/core_ext/class/delegating_attributes' require 'active_support/core_ext/array/extract_options' require 'active_support/core_ext/hash/deep_merge' require 'active_support/core_ext/hash/slice' +require 'active_support/core_ext/hash/transform_values' require 'active_support/core_ext/string/behavior' require 'active_support/core_ext/kernel/singleton_class' require 'active_support/core_ext/module/introspection' |