Skip to content
Browse files

Don't use concat on authorized? helper

  • Loading branch information...
1 parent 5a8cdaa commit 352cc011d932de65ec1d9d6846236b620e751812 @radar radar committed May 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/helpers/application_helper.rb
View
4 app/helpers/application_helper.rb
@@ -12,7 +12,7 @@ def admins_only(&block)
end
def authorized?(permission, thing, &block)
- concat(block.call) if can?(permission.to_sym, thing) ||
- current_user.try(:admin?)
+ block.call if can?(permission.to_sym, thing) ||
+ current_user.try(:admin?)
end
end

0 comments on commit 352cc01

Please sign in to comment.
Something went wrong with that request. Please try again.