Skip to content

Commit

Permalink
Don't use concat on admins_only helper
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed May 20, 2012
1 parent e0bbd88 commit 5a8cdaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Expand Up @@ -8,7 +8,7 @@ def title(*parts)
end

def admins_only(&block)
concat(block.call) if current_user.try(:admin?)
block.call if current_user.try(:admin?)
end

def authorized?(permission, thing, &block)
Expand Down

0 comments on commit 5a8cdaa

Please sign in to comment.