Permalink
Browse files

Fix deprecation warning on serialized_attributes method

  • Loading branch information...
chrisbranson committed Nov 19, 2013
1 parent dd22a8d commit 44eae54cd7f035f45391d8ffd4bccee6daab781e
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/stampable.rb
View
@@ -112,7 +112,7 @@ def stampable(options = {})
end
before_destroy :set_deleter_attribute
-
+
end
end
end
@@ -156,7 +156,7 @@ def set_updater_attribute
return unless self.record_userstamp
# only set updater if the record is new or has changed
# or contains a serialized attribute (in which case the attribute value is always updated)
- return unless self.new_record? || self.changed? || self.serialized_attributes.present?
+ return unless self.new_record? || self.changed? || self.class.serialized_attributes.present?
if respond_to?(self.updater_attribute.to_sym) && has_stamper?
self.send("#{self.updater_attribute}=".to_sym, self.class.stamper_class.stamper)
end

0 comments on commit 44eae54

Please sign in to comment.