Skip to content

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

Merged
batter merged 1 commit intopaper-trail-gem:masterfrom
TylerRick:deprecation_warning_writing_arbitrary_attributes
Oct 3, 2013
Merged

Don't try to write timestamp attributes just because the method exists; only write it if it is a real attribute.#280
batter merged 1 commit intopaper-trail-gem:masterfrom
TylerRick:deprecation_warning_writing_arbitrary_attributes

Conversation

@TylerRick
Copy link
Copy Markdown
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
Copy Markdown
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