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

Rails 4.2 has deprecated serialized_attributes #2140

Merged
merged 1 commit into from Dec 24, 2014

Conversation

iwz
Copy link
Contributor

@iwz iwz commented Dec 24, 2014

  • Use the new type_for_attribute method instead
  • Green tests on Rails 4.0, 4.1, and 4.2 in my testing

@@ -18,7 +18,13 @@ def pretty_name
end

def type
if model.serialized_attributes[property.name.to_s]
serialized = if Rails.version < '4.2'

Choose a reason for hiding this comment

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

Could this be pulled into a private method #serialized?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good call, giving it a shot

Copy link
Contributor Author

Choose a reason for hiding this comment

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

works fine, thanks @nickrivadeneira!

@iwz
Copy link
Contributor Author

iwz commented Dec 24, 2014

Re: coveralls

Does coveralls only run against a single version of Rails? I wonder if rails_admin would benefit from using the appraisal gem for running against all the supported versions of deps. https://github.com/thoughtbot/appraisal

@iwz iwz force-pushed the serialized_attributes-rails-4.2 branch from 0c9eed4 to 6a62a2c Compare December 24, 2014 19:12
* Use the new `type_for_attribute` method instead
@iwz iwz force-pushed the serialized_attributes-rails-4.2 branch from 6a62a2c to 698f06a Compare December 24, 2014 19:39
@sferik
Copy link
Collaborator

sferik commented Dec 24, 2014

Don’t worry too much about Coveralls. Thanks for making this change.

sferik added a commit that referenced this pull request Dec 24, 2014
Rails 4.2 has deprecated `serialized_attributes`
@sferik sferik merged commit 552eb6f into railsadminteam:master Dec 24, 2014
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.

None yet

3 participants