Sha256: 5949e9da079ea74efdc075058c8298f2542ab12470fd52be648e9d297f0fd7f2

Contents?: true

Size: 632 Bytes

Versions: 25

Compression:

Stored size: 632 Bytes

Contents

= dm-timestamps

DataMapper plugin which adds "magic" to created_at, created_on, et cetera.

= Using

This plugin works by looking for the "created_at," "updated_at," "created_on"
and "updated_on" properties. If they exist, it does the right thing by setting
them or updating them. The *at properties should be of type DateTime, while the
*on properties should be of type Date.

Alternatively, you can have all of this setup for you if you use the "timestamps"
helper:

  timestamps :at    # Add created_at and updated_at
  timestamps :on    # Add created_on and updated_on
  timestamps :created_at, :updated_on    # Add these only

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
sbf-dm-timestamps-1.4.0 README.rdoc
sbf-dm-timestamps-1.3.0 README.rdoc
sbf-dm-timestamps-1.3.0.beta README.rdoc
ardm-timestamps-1.2.0 README.rdoc
dm-timestamps-1.2.0 README.rdoc
dm-timestamps-1.2.0.rc2 README.rdoc
dm-timestamps-1.2.0.rc1 README.rdoc
dm-timestamps-1.1.0 README.rdoc
dm-timestamps-1.1.0.rc3 README.rdoc
dm-timestamps-1.1.0.rc2 README.rdoc
dm-timestamps-1.1.0.rc1 README.rdoc
dm-timestamps-1.0.2 README.rdoc
dm-timestamps-1.0.1 README.rdoc
dm-timestamps-1.0.0 README.rdoc
dm-timestamps-1.0.0.rc3 README.rdoc
dm-timestamps-1.0.0.rc2 README.rdoc
dm-timestamps-1.0.0.rc1 README.rdoc
dm-timestamps-0.10.2 README.rdoc
dm-timestamps-0.10.1 README.rdoc
dm-timestamps-0.10.0 README.rdoc