lib/draper/decoratable.rb in draper-1.0.0.beta5 vs lib/draper/decoratable.rb in draper-1.0.0.beta6
- old
+ new
@@ -20,10 +20,10 @@
def decorated?
false
end
def ==(other)
- super || (other.respond_to?(:source) && super(other.source))
+ super || (other.respond_to?(:source) && self == other.source)
end
module ClassMethods
def decorate(options = {})
decorator_class.decorate_collection(self.scoped, options)