Permalink
Browse files

A bit of codestyle goodness for a private method

  • Loading branch information...
1 parent 520ec00 commit 97ea107443b0fd1efaef86898c744aed230d0b12 @rwz committed Oct 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/nestive/layout_helper.rb
@@ -237,8 +237,8 @@ def add_instruction_to_area(name, instruction, value)
# @todo is `html_safe` "safe" here?
def render_area(name)
[].tap do |output|
- @_area_for.fetch(name, []).reverse_each do |i|
- output.send i.first, i.last
+ @_area_for.fetch(name, []).reverse_each do |method_name, content|
+ output.public_send method_name, content
end
end.join.html_safe
end

0 comments on commit 97ea107

Please sign in to comment.