Module: Humanoid::Timestamps
- Defined in:
- lib/humanoid/timestamps.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/humanoid/timestamps.rb', line 5 def self.included(base) base.class_eval do include InstanceMethods field :created_at, :type => Time field :updated_at, :type => Time before_save :set_created_at, :set_updated_at end end |