Permalink
Browse files

Don't use concat on admins_only helper

  • Loading branch information...
1 parent 5c93abd commit 3ecac52f92a5219995191c395cd864b7ea2223ef @radar radar committed May 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/helpers/application_helper.rb
@@ -8,6 +8,6 @@ def title(*parts)
end
def admins_only(&block)
- concat(block.call) if current_user.try(:admin?)
+ block.call if current_user.try(:admin?)
end
end

0 comments on commit 3ecac52

Please sign in to comment.