Skip to content

Revert #15502, and add a deprecation warning instead.#15878

Merged
rafaelfranca merged 1 commit into
rails:masterfrom
sgrif:sg-null-column
Jun 23, 2014
Merged

Revert #15502, and add a deprecation warning instead.#15878
rafaelfranca merged 1 commit into
rails:masterfrom
sgrif:sg-null-column

Conversation

@sgrif
Copy link
Copy Markdown
Contributor

@sgrif sgrif commented Jun 23, 2014

This is public API, and simple_form depends on the nil return value.
We need to go through a deprecation cycle to return a null object. If
people want hash access, they can access the hash.

Closes #15877

This is public API, and `simple_form` depends on the `nil` return value.
We need to go through a deprecation cycle to return a null object. If
people want hash access, they can access the hash.
rafaelfranca added a commit that referenced this pull request Jun 23, 2014
Revert #15502, and add a deprecation warning instead.
@rafaelfranca rafaelfranca merged commit 679626e into rails:master Jun 23, 2014
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could .to_s be normalized inside the type_for_attribute method?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've been pushing to consistently use strings internally, rather than allowing both everywhere.

@rafaelfranca
Copy link
Copy Markdown
Member

Weird. Simple Form build should had fail on master 😢

@sgrif
Copy link
Copy Markdown
Contributor Author

sgrif commented Jun 23, 2014

I didn't actually confirm the report, but the fact that it came up at all made it clear someone somewhere is relying on this behavior.

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.

ActiveRecord::AttributeMethods#column_for_attribute doesn't work with alias_attribute and behaves strangely with nonexistent attribute

3 participants