module ActiveMongoid::Associations::RecordRelation::AutoSave

Public Instance Methods

record_changed_for_autosave?(obj) click to toggle source
# File lib/active_mongoid/associations/record_relation/auto_save.rb, line 7
def record_changed_for_autosave?(obj)
  obj.new_record? || obj.changed? || obj.marked_for_destruction?
end