Method: Strongbolt::Capability.actions_from_list
- Defined in:
- lib/strongbolt/capability.rb
.actions_from_list(actions) ⇒ Object
Virtual setter of actions
131 132 133 134 135 136 137 138 |
# File 'lib/strongbolt/capability.rb', line 131 def self.actions_from_list(actions) # Transform actions array if actions.respond_to?(:to_sym) && actions.to_sym == :all Actions # All actions else [*actions] # Transform into an array end end |