mirror of
https://github.com/github/rails.git
synced 2026-01-27 23:38:11 -05:00
Make the record_timestamps class-inheritable so it can be set per model. References #10004.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
*SVN*
|
||||
|
||||
* Make the record_timestamps class-inheritable so it can be set per model. #10004 [tmacedo]
|
||||
|
||||
* Allow validates_acceptance_of to use a real attribute instead of only virtual (so you can record that the acceptance occured) #7457 [ambethia]
|
||||
|
||||
* DateTimes use Ruby's default calendar reform setting. #10201 [Geoff Buesing]
|
||||
|
||||
@@ -12,7 +12,7 @@ module ActiveRecord
|
||||
base.alias_method_chain :create, :timestamps
|
||||
base.alias_method_chain :update, :timestamps
|
||||
|
||||
base.cattr_accessor :record_timestamps, :instance_writer => false
|
||||
base.class_inheritable_accessor :record_timestamps, :instance_writer => false
|
||||
base.record_timestamps = true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user