Module: Enumerize::MongoidSupport::InstanceMethods
- Defined in:
- lib/enumerize/mongoid.rb
Instance Method Summary collapse
Instance Method Details
#reload ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/enumerize/mongoid.rb', line 18 def reload reloaded = super reloaded.class.enumerized_attributes.each do |attr| reloaded.send("#{attr.name}=", reloaded[attr.name]) end reloaded end |