Skip to content

Instantly share code, notes, and snippets.

@nathanl
Created April 21, 2012 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanl/0f9d6cb90948117b47fe to your computer and use it in GitHub Desktop.
Save nathanl/0f9d6cb90948117b47fe to your computer and use it in GitHub Desktop.
Rubysource Authority-2
class AdminAuthorizer < Authority::Authorizer
def self.creatable_by?(user)
user.is_admin?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment