Created
June 20, 2013 20:27
-
-
Save eastridge/5826303 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AuthenticatedController < ApplicationController | |
before_filter :authenticate_person!, :is_admin | |
private | |
def is_admin | |
@is_admin = current_person.is_admin | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment