Skip to content

Split up created_at/updated_at timestamp modules#12

Open
jordoh wants to merge 1 commit intocyx:masterfrom
jordoh:separate_timestamps
Open

Split up created_at/updated_at timestamp modules#12
jordoh wants to merge 1 commit intocyx:masterfrom
jordoh:separate_timestamps

Conversation

@jordoh
Copy link

@jordoh jordoh commented Dec 19, 2012

This splits up the modules for created_at and updated_at, so you can include both - include Ohm::Timestamps - or just one or the other - include Ohm::Timestamps::Created or include Ohm::Timestamps::Updated.

This is useful when you have a (conceptually) read-only model and only want created_at, or don't require one or the other timestamp for whatever reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments