Created
May 27, 2009 17:50
-
-
Save dmichael/118776 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 YourKillerModel | |
# This method checks permissions for the :index action | |
def self.is_indexable_by(user, parent = nil) | |
end | |
# This method checks permissions for the :create and :new action | |
def self.is_creatable_by(user, parent = nil) | |
end | |
# This method checks permissions for the :show action | |
def is_readable_by(user, parent = nil) | |
end | |
# This method checks permissions for the :update and :edit action | |
def is_updatable_by(user, parent = nil) | |
end | |
# This method checks permissions for the :destroy action | |
def is_deletable_by(user, parent = nil) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment