Class: Kraut::Rails::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- Kraut::Rails::Engine
- Defined in:
- lib/kraut/rails/engine.rb
Class Method Summary collapse
Class Method Details
.resolve_authorization_aliases(authorizations, aliases) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/kraut/rails/engine.rb', line 18 def self.(, aliases) .inject({}) do |resolved, (action, groups)| resolved[action] = groups.map { |group| aliases[group] } resolved end end |