Module: AttributeChanger::Allower::ClassMethods

Defined in:
lib/attribute_changer/allower.rb

Instance Method Summary collapse

Instance Method Details

#attributes_allowed_for_step_change(attribs = nil) ⇒ Object



9
10
11
12
13
# File 'lib/attribute_changer/allower.rb', line 9

def attributes_allowed_for_step_change(attribs = nil)
  self._attributes_allowed_for_step_change ||= []
  self._attributes_allowed_for_step_change = *attribs if attribs
  _attributes_allowed_for_step_change
end