Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add in block() as a deprecated alias of area()

  • Loading branch information...
commit a5339597a35aed60f611b60c038ee6802dd80294 1 parent c28135e
@justinfrench justinfrench authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 app/helpers/nestive/layout_helper.rb
View
5 app/helpers/nestive/layout_helper.rb
@@ -123,6 +123,11 @@ def area(name, content=nil, &block)
render_area(name)
end
+ def block(name, content=nil, &block)
+ ActiveSupport::Deprecation.warn("block() is deprecated and will be removed very soon, please use area() instead")
+ area(name, content, &block)
+ end
+
# Appends content to an area previously defined or modified in parent layout(s). You can provide
# the content using either a String, or a block.
#
Please sign in to comment.
Something went wrong with that request. Please try again.