diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-07-28 16:20:07 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-08-31 17:45:06 +0200 |
commit | 1620f572bff9cd503e67480975bd0a652a77cf8e (patch) | |
tree | 84002f089760a70323fe70362cdc4479179a7745 /activerecord/lib/active_record/attribute_methods | |
parent | 8402488568cbc6ea2a90990faef65aa39bf1494d (diff) | |
download | rails-1620f572bff9cd503e67480975bd0a652a77cf8e.tar.gz rails-1620f572bff9cd503e67480975bd0a652a77cf8e.tar.bz2 rails-1620f572bff9cd503e67480975bd0a652a77cf8e.zip |
Replacing superclass_delegating_accessoror with class_attribute.
:partial_attributes will have value true or false so there is no
danger of mutability here.
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/dirty.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/dirty.rb b/activerecord/lib/active_record/attribute_methods/dirty.rb index cf4594ad7f..439880c1fa 100644 --- a/activerecord/lib/active_record/attribute_methods/dirty.rb +++ b/activerecord/lib/active_record/attribute_methods/dirty.rb @@ -12,7 +12,7 @@ module ActiveRecord raise "You cannot include Dirty after Timestamp" end - superclass_delegating_accessor :partial_updates + class_attribute :partial_updates self.partial_updates = true end |