Module: DataMapper::Timestamps

### Home Classes Methods

### In Files

- lib/dm-timestamps.rb

### Namespace

- MODULE DataMapper::Timestamps::ClassMethods
- CLASS DataMapper::Timestamps::InvalidTimestampName

### Methods

- ::included
- #touch

### Files

- LICENSE
- README.rdoc

### Class/Module Index

Quicksearch

- DataMapper
- DataMapper::Timestamp
- DataMapper::Timestamps
- DataMapper::Timestamps::ClassMethods
- DataMapper::Timestamps::InvalidTimestampName

No matching classes.

# DataMapper::Timestamps

### Constants

TIMESTAMP_PROPERTIES

### Public Class Methods

included(model) click to toggle source

    # File lib/dm-timestamps.rb, line 12
    def self.included(model)
      model.before :save, :set_timestamps_on_save
      model.extend ClassMethods
    end

### Public Instance Methods

touch() click to toggle source

Saves the record with the updated_at/on attributes set to the current time.

    # File lib/dm-timestamps.rb, line 18
    def touch
      set_timestamps
      save
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.