Method: Ardm::Property::ParanoidDateTime#bind
- Defined in:
- lib/ardm/property/paranoid_datetime.rb
#bind ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 13 14 |
# File 'lib/ardm/property/paranoid_datetime.rb', line 10 def bind model.send(:include, Ardm::Property::ParanoidBase) model.set_paranoid_property(name) { ::DateTime.now } model.set_paranoid_scope(model.arel_table[name].eq(nil)) end |