Class: Administrator

Inherits:
Person
  • Object
show all
Defined in:
app/models/administrator.rb

Instance Method Summary collapse

Methods inherited from Person

#activate, #disactivate, find_by_login_or_email, #fullname

Instance Method Details

#access_path?(controller, action) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/models/administrator.rb', line 14

def access_path?(controller,action)
  rights.find_by_controller_name_and_action_name(controller,action)
end