Skip to content

Instantly share code, notes, and snippets.

@dmichael
Created May 27, 2009 17:50
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 dmichael/118776 to your computer and use it in GitHub Desktop.
Save dmichael/118776 to your computer and use it in GitHub Desktop.
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