Method: Mist::Configuration#authorized?
- Defined in:
- lib/mist/configuration.rb
#authorized?(action, *args) ⇒ Boolean
Invokes the blocks registered by Mist::Configuration#authorize to see if the specified action is authorized. Passes *args into the block.
62 63 64 65 66 67 |
# File 'lib/mist/configuration.rb', line 62 def (action, *args) if .key?(action) then [action].call *args elsif .key?(:all) then [:all].call *args else nil end end |