lib/jb/action_view_monkeys.rb in jb-0.2.0 vs lib/jb/action_view_monkeys.rb in jb-0.3.0
- old
+ new
@@ -27,9 +27,14 @@
end
private def collection_without_template
super.extend StrongArray
end
+
+ private def render_collection
+ return [] if @collection.blank?
+ super
+ end
end
end
# A monkey-patch that converts non-partial result to a JSON String
module TemplateRenderer