Module: Rabarber::Core::Roleable
- Included in:
- Authorization, Helpers
- Defined in:
- lib/rabarber/core/roleable.rb
Instance Method Summary collapse
Instance Method Details
#roleable ⇒ Object
6 7 8 |
# File 'lib/rabarber/core/roleable.rb', line 6 def roleable send(Rabarber::Configuration.instance.current_user_method) || NullRoleable.new end |
#roleable_roles(context: nil) ⇒ Object
10 11 12 |
# File 'lib/rabarber/core/roleable.rb', line 10 def roleable_roles(context: nil) roleable.roles(context: context) end |