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

SerializedAttributes is deprecated in Rails 4.2.x, and will be removed in Rails 5 #33

Closed
dpaluy opened this issue Aug 25, 2015 · 2 comments

Comments

@dpaluy
Copy link

dpaluy commented Aug 25, 2015

I'm working with Rails 4.2 and I'm getting the following warning:

DEPRECATION WARNING: `serialized_attributes` is deprecated without replacement, and will
be removed in Rails 5.0.

This issue is similar to paper-trail-gem/paper_trail#416

I added the following patch (to suppress deprecation warnings) https://github.com/dpaluy/draftsman/blob/afce35b3985c79760176f31710c11a77b1201f0e/config/initializers/draftsman.rb

@chrisdpeters
Copy link
Collaborator

@dpaluy Thank you for reporting this.

I noticed in your fork that you moved this over to an initializer instead of spec/support. Can you help me understand why? I'm not seeing this deprecation notice in my dev logs in the app that's using this gem, but obviously it is being spit out all over the place when running tests.

@dpaluy
Copy link
Author

dpaluy commented Nov 6, 2015

@chrisdpeters I saw those warning in my main Rails app (4.2.4), thus I moved it to an initializer.

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

No branches or pull requests

2 participants