Skip to content

Commit

Permalink
simplify AdminConstraint
Browse files Browse the repository at this point in the history
  • Loading branch information
macool committed Apr 26, 2014
1 parent 1fbe74d commit 0df3021
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/admin_constraint.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
class AdminConstraint
def matches?( request )
return false unless request.session[:user_id]
user = User.cached_find request.session[:user_id]
user
User.cached_find request.session[:user_id]
end
end

0 comments on commit 0df3021

Please sign in to comment.