Permalink
Browse files

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>
  • Loading branch information...
1 parent 8402488 commit 1620f572bff9cd503e67480975bd0a652a77cf8e Neeraj Singh committed with josevalim Jul 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/attribute_methods/dirty.rb
@@ -12,7 +12,7 @@ module Dirty
raise "You cannot include Dirty after Timestamp"
end
- superclass_delegating_accessor :partial_updates
+ class_attribute :partial_updates
self.partial_updates = true
end

0 comments on commit 1620f57

Please sign in to comment.