Module: Rabarber::Core::Roleable

Included in:
Authorization, Helpers
Defined in:
lib/rabarber/core/roleable.rb

Instance Method Summary collapse

Instance Method Details

#roleableObject



6
7
8
# File 'lib/rabarber/core/roleable.rb', line 6

def roleable
  send(Rabarber::Configuration.instance.current_user_method)
end

#roleable_rolesObject



10
11
12
# File 'lib/rabarber/core/roleable.rb', line 10

def roleable_roles
  roleable&.roles.to_a
end