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

Fixing deprecation warning for nil columns in Rails 4.2.beta1 #1126

Merged
merged 1 commit into from Aug 25, 2014

Conversation

tokafish
Copy link

This is an alternative solution for outstanding pull request #1094

The underlying issue is that simple_form calls column_for_attribute on non-attribute inputs, for instance, password on a devise model. This results in a deprecation message from rails. The fix uses has_attribute?
to ensure we don't call column_for_attribute improperly.

@rafaelfranca
Copy link
Collaborator

❤️

@sgrif
Copy link

sgrif commented Aug 25, 2014

LGTM

rafaelfranca added a commit that referenced this pull request Aug 25, 2014
Fixing deprecation warning for nil columns in Rails 4.2.beta1
@rafaelfranca rafaelfranca merged commit 29f8f76 into heartcombo:master Aug 25, 2014
dpickett added a commit to LaunchAcademy/preflight that referenced this pull request Aug 27, 2014
deprecation warning w/ Simpleform addressed @ heartcombo/simple_form#1126
guigs pushed a commit to guigs/simple_form that referenced this pull request Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants