Module: Spira::Timestamps::ClassMethods
- Defined in:
- lib/spira/timestamps.rb
Instance Method Summary collapse
-
#timestamps ⇒ Object
Add timestamps to this model.
Instance Method Details
#timestamps ⇒ Object
Add timestamps to this model.
33 34 35 36 37 38 39 |
# File 'lib/spira/timestamps.rb', line 33 def property :created, predicate: RDF::DC.created add_created_aliases property :updated, predicate: RDF::DC.modified add_updated_aliases end |