Module: ActsAsDefault::InstanceMethods
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/acts_as_default.rb
Instance Method Summary collapse
Instance Method Details
#set_as_default! ⇒ Object
28 29 30 31 32 33 |
# File 'lib/acts_as_default.rb', line 28 def set_as_default! if default == false get_default_object.toggle!(:default) toggle!(:default) end end |