Module: SudoAttributes::InstanceMethods
- Defined in:
- lib/sudo_attributes.rb
Instance Method Summary collapse
Instance Method Details
#sudo_update_attributes(new_attributes) ⇒ Object
49 50 51 52 |
# File 'lib/sudo_attributes.rb', line 49 def sudo_update_attributes(new_attributes) self.send(:attributes=, new_attributes, false) save end |
#sudo_update_attributes!(new_attributes) ⇒ Object
54 55 56 57 |
# File 'lib/sudo_attributes.rb', line 54 def sudo_update_attributes!(new_attributes) self.send(:attributes=, new_attributes, false) save! end |