Skip to content

Commit

Permalink
DRYed purge method
Browse files Browse the repository at this point in the history
  • Loading branch information
rwz committed Apr 14, 2013
1 parent c759999 commit 35658b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/helpers/nestive/layout_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ def replace(name, content=nil, &block)
# @param [Symbol] name
# A name to identify the area of content you wish to purge
def purge(name)
add_instruction_to_area(name, :replace, [])
nil
replace name, nil
end

private
Expand Down

0 comments on commit 35658b3

Please sign in to comment.