lib/draper/factory.rb in draper-2.0.0 vs lib/draper/factory.rb in draper-2.1.0
- old
+ new
@@ -73,10 +73,10 @@
klass.method(:decorate)
end
end
def collection?
- object.respond_to?(:first)
+ object.respond_to?(:first) && !object.is_a?(Struct)
end
def decoratable?
object.respond_to?(:decorate)
end