Class: Kraut::Rails::Engine

Inherits:
Rails::Engine
  • Object
show all
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.resolve_authorization_aliases(authorizations, aliases)
  authorizations.inject({}) do |resolved, (action, groups)|
    resolved[action] = groups.map { |group| aliases[group] }
    resolved
  end
end