Skip to content
Browse files

put core at the beginning so other classes can modify the behavior

  • Loading branch information...
1 parent c6ecfc1 commit 72403003085ff6413ddf53e34561175e3dd68168 @kbrock kbrock committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 activerecord/lib/active_record/base.rb
  2. +1 −1 activerecord/lib/active_record/timestamp.rb
View
2 activerecord/lib/active_record/base.rb
@@ -294,6 +294,7 @@ class Base
extend Enum
extend Delegation::DelegateCache
+ include Core
include Persistence
include NoTouching
include ReadonlyAttributes
@@ -320,7 +321,6 @@ class Base
include Reflection
include Serialization
include Store
- include Core
end
ActiveSupport.run_load_hooks(:active_record, Base)
View
2 activerecord/lib/active_record/timestamp.rb
@@ -37,8 +37,8 @@ module Timestamp
end
def initialize_dup(other) # :nodoc:
- clear_timestamp_attributes
super
+ clear_timestamp_attributes
end
private

0 comments on commit 7240300

Please sign in to comment.
Something went wrong with that request. Please try again.