Method: Upmin::Model.actions
- Defined in:
- lib/upmin/model.rb
.actions(*actions) ⇒ Object
Sets the upmin_actions to the provided actions if any are provided. If no actions are provided, and upmin_actions hasn’t been defined, then the upmin_actions are set to the default actions. Returns the upmin_actions
267 268 269 270 271 272 273 274 |
# File 'lib/upmin/model.rb', line 267 def Model.actions(*actions) if actions.any? # set the actions @actions = actions.map{|a| a.to_sym} end @actions ||= [] return @actions end |