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

Don't try to write timestamp attributes just because the method exists; only write it if it is a real attribute. #280

Conversation

TylerRick
Copy link
Contributor

This resolves this error you would get if you defined a created_on method (virtual attribute) in
your model, for example:

DEPRECATION WARNING: You're trying to create an attribute created_on'. Writing arbitrary attributes on a model is deprecated. Please just useattr_writer` etc.

…s; only write it if it is a

real attribute.

This resolves this error you would get if you defined a created_on method (virtual attribute) in
your model, for example:

  DEPRECATION WARNING: You're trying to create an attribute `created_on'. Writing arbitrary
  attributes on a model is deprecated. Please just use `attr_writer` etc.
@batter batter merged commit 9bd8002 into paper-trail-gem:master Oct 3, 2013
@batter
Copy link
Collaborator

batter commented Oct 3, 2013

Cheers!

@ghost ghost assigned batter Oct 3, 2013
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.

2 participants