Module: Walruz::CoreExt::Array
- Defined in:
- lib/walruz/core_ext/array.rb
Instance Method Summary collapse
Instance Method Details
#only_authorized_for(actor, options = {}) ⇒ Array<Walruz::Subject> #only_authorized_for(actor, action) ⇒ Array<Walruz::Subject>
47 48 49 50 51 52 53 |
# File 'lib/walruz/core_ext/array.rb', line 47 def (actor, opts = {}) unless opts.kind_of?(Symbol) (actor, opts) else # use the opts (actor, opts) end end |