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>
This commit is contained in:
Neeraj Singh
2010-07-28 16:20:07 -04:00
committed by José Valim
parent 8402488568
commit 1620f572bf

View File

@@ -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