module TtafuAttribute
Constants
- VERSION
Public Instance Methods
_update_record(*args)
click to toggle source
Calls superclass method
# File lib/ttafu_attribute.rb, line 8 def _update_record(*args) return super unless self.record_timestamps begin if (changed & self._ttafu_attributes).empty? self.record_timestamps = false end super ensure self.record_timestamps = true end end
ttafu_attribute(*attributes)
click to toggle source
# File lib/ttafu_attribute.rb, line 23 def ttafu_attribute(*attributes) self._ttafu_attributes.concat attributes.map(&:to_s) attributes end