lib/nice_partials/partial.rb in nice_partials-0.1.1 vs lib/nice_partials/partial.rb in nice_partials-0.1.2
- old
+ new
@@ -15,7 +15,11 @@
end
def content_for(name, content = nil, options = {}, &block)
@view_context.content_for("#{name}_#{@key}".to_sym, content, options, &block)
end
+
+ def content_for?(name)
+ @view_context.content_for?("#{name}_#{@key}".to_sym)
+ end
end
end