diff options
author | Keenan Brock <kbrock@redhat.com> | 2014-01-22 09:28:19 -0500 |
---|---|---|
committer | Keenan Brock <kbrock@redhat.com> | 2014-01-22 09:28:19 -0500 |
commit | 72403003085ff6413ddf53e34561175e3dd68168 (patch) | |
tree | 996c9fbaa390454a6e8ee80331621009bcc9fb8a /activerecord | |
parent | c6ecfc1668d6e2c69d360ed376b9e3f77ad72e83 (diff) | |
download | rails-72403003085ff6413ddf53e34561175e3dd68168.tar.gz rails-72403003085ff6413ddf53e34561175e3dd68168.tar.bz2 rails-72403003085ff6413ddf53e34561175e3dd68168.zip |
put core at the beginning so other classes can modify the behavior
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 2 | ||||
-rw-r--r-- | activerecord/lib/active_record/timestamp.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 1d3ec75aa1..9ec1feea97 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -294,6 +294,7 @@ module ActiveRecord #:nodoc: extend Enum extend Delegation::DelegateCache + include Core include Persistence include NoTouching include ReadonlyAttributes @@ -320,7 +321,6 @@ module ActiveRecord #:nodoc: include Reflection include Serialization include Store - include Core end ActiveSupport.run_load_hooks(:active_record, Base) diff --git a/activerecord/lib/active_record/timestamp.rb b/activerecord/lib/active_record/timestamp.rb index e0541b7681..09b37b7183 100644 --- a/activerecord/lib/active_record/timestamp.rb +++ b/activerecord/lib/active_record/timestamp.rb @@ -37,8 +37,8 @@ module ActiveRecord end def initialize_dup(other) # :nodoc: - clear_timestamp_attributes super + clear_timestamp_attributes end private |