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

Raise runtime errors not argument errors when :as attr undefined #61

Merged
merged 1 commit into from Aug 29, 2014
Merged

Raise runtime errors not argument errors when :as attr undefined #61

merged 1 commit into from Aug 29, 2014

Conversation

chelsea
Copy link
Contributor

@chelsea chelsea commented Aug 29, 2014

Fixes #60 (For varying definitions of fixes)

Raise a runtime error at validation instead of argument error when the app initialises.

This allows migrations to be run for new attributes without having to use attr_accessor or comment out phony_normalize in the model.

joost pushed a commit that referenced this pull request Aug 29, 2014
Raise runtime errors not argument errors when :as attr undefined
@joost joost merged commit e04be29 into joost:master Aug 29, 2014
@joost
Copy link
Owner

joost commented Aug 29, 2014

I've merged it in as I also dislike these 'blocking' errors.
Only thing that we could do is give a good runtime error explanation when the attribute does not (yet) exist on the model.

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.

Unable to run migrations if "as" attribute added
2 participants