Method: ActAsDirty::ActiveModel::Cleans#clean?
- Defined in:
- lib/act_as_dirty/active_model/cleans.rb
#clean?(context = nil) ⇒ Boolean
98 99 100 101 102 103 104 |
# File 'lib/act_as_dirty/active_model/cleans.rb', line 98 def clean?(context= nil) current_context, self.cleaning_context = cleaning_context, context dirt.clear run_cleaners! ensure self.cleaning_context = current_context end |