Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split up created_at/updated_at timestamp modules #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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