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

guard against MissingAttributeError during common ActiveRecord operations #19

Merged
merged 1 commit into from
Aug 26, 2014
Merged

Conversation

booleanbetrayal
Copy link
Collaborator

This seems like the most correct thing to do until Rails differentiates between object decanting and object creation for after_initialize.

see also: http://www.tatvartha.com/2011/03/activerecordmissingattributeerror-missing-attribute-a-bug-or-a-features/

@lynndylanhurley
Copy link
Owner

Good call. Thanks @booleanbetrayal 👍

lynndylanhurley added a commit that referenced this pull request Aug 26, 2014
guard against MissingAttributeError during common ActiveRecord operations
@lynndylanhurley lynndylanhurley merged commit 91f9984 into lynndylanhurley:master Aug 26, 2014
@booleanbetrayal
Copy link
Collaborator Author

np! =]

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