Module: Mongoid::Timestamps::Timeless

Defined in:
lib/workarea/ext/mongoid/timestamps_timeless.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#clear_timeless_optionObject



30
31
32
33
34
35
36
37
# File 'lib/workarea/ext/mongoid/timestamps_timeless.rb', line 30

def clear_timeless_option
  if self.persisted?
    self.class.clear_timeless_option_on_update
  else
    self.class.clear_timeless_option
  end
  true
end