RubyGems Navigation menu

mongoid-friendly-timestamps 0.0.1

Adds a 'friendly_timestamp' method with which you can define a pair of linked timestamp fields (one a raw float for precision, the other a human-readable string). For example: class MyDocument include Mongoid::Document include Mongoid::Friendly::Timestamps friendly_timestamp :timestamp, :friendly_timestamp end doc = MyDocument.new doc.timestamp = Time.now # doc.friendly_timestamp == Time.now in 'dd-mmm-yyyy hh:mm:ss.nnnnnnnnn' format

Gemfile:
= Copier Copié!

installation:
=

Versions:

  1. 0.0.4 - February 10, 2011 (4,5 ko)
  2. 0.0.3 - February 10, 2011 (4,5 ko)
  3. 0.0.2 - February 10, 2011 (4,5 ko)
  4. 0.0.1 - February 09, 2011 (4,5 ko)

Dépendances de Runtime (1):

activesupport ~> 3.0.0

Propriétaires:

Auteurs:

  • Lee Henson

Total de contrôle SHA 256:

bab370f3f8edd931251d6c5d06c5f358dba983f30fd211681a0d179525d85b22

Total de téléchargements 14 086

Pour cette version 3 242

License:

aucune

Version de Ruby requise: None

Liens: