Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't use concat on admins_only helper

  • Loading branch information...
commit 3ecac52f92a5219995191c395cd864b7ea2223ef 1 parent 5c93abd
@radar radar authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/helpers/application_helper.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.