Class: Sheriff::Jurisdiction

Inherits:
Object
  • Object
show all
Includes:
CanCan::Ability
Defined in:
lib/sheriff/jurisdiction.rb

Instance Method Summary collapse

Instance Method Details

#hide(method_name, const) ⇒ Object



11
12
13
# File 'lib/sheriff/jurisdiction.rb', line 11

def hide(method_name, const)
  cannot method_name, const
end

#show(method_name, const) ⇒ Object



7
8
9
# File 'lib/sheriff/jurisdiction.rb', line 7

def show(method_name, const)
  can method_name, const
end