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

massive deprecation warning on rails 5.1 #53

Closed
BranLiang opened this issue Mar 18, 2017 · 2 comments
Closed

massive deprecation warning on rails 5.1 #53

BranLiang opened this issue Mar 18, 2017 · 2 comments
Assignees
Milestone

Comments

@BranLiang
Copy link

DEPRECATION WARNING: The behavior of changed_attributes inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after save returned (e.g. the opposite of what it returns now). To maintain the current behavior, use saved_changes.transform_values(&:first) instead. (called from block (2 levels) in <top (required)> at /home/bran/Desktop/alexandria/spec/requests/books_spec.rb:4)
DEPRECATION WARNING: The behavior of changes inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after save returned (e.g. the opposite of what it returns now). To maintain the current behavior, use saved_changes instead. (called from block (2 levels) in <top (required)> at /home/bran/Desktop/alexandria/spec/requests/books_spec.rb:4)
DEPRECATION WARNING: The behavior of changed inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after save returned (e.g. the opposite of what it returns now). To maintain the current behavior, use saved_changes.keys instead. (called from block (2 levels) in <top (required)> at /home/bran/Desktop/alexandria/spec/requests/books_spec.rb:4)
DEPRECATION WARNING: The behavior of attribute_change inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after save returned (e.g. the opposite of what it returns now). To maintain the current behavior, use saved_change_to_attribute instead. (called from block (2 levels) in <top (required)> at /home/bran/Desktop/alexandria/spec/requests/books_spec.rb:4)
DEPRECATION WARNING: The behavior of attribute_changed? inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after save returned (e.g. the opposite of what it returns now). To maintain the current behavior, use saved_change_to_attribute? instead. (called from block (2 levels) in <top (required)> at /home/bran/Desktop/alexandria/spec/requests/books_spec.rb:4)

@y9v y9v self-assigned this Mar 18, 2017
@y9v y9v added this to the v2.5.0 milestone Mar 18, 2017
@Borzik
Copy link

Borzik commented May 4, 2017

In case someone will face this issue while upgrading to Rails 5.1: it is actually caused by carrierwave gem, not this one. Using gem 'carrierwave', '~> 1.1.0' fixed it for me.

@y9v
Copy link
Owner

y9v commented May 5, 2017

@Borzik thank you! I'm closing this issue

@y9v y9v closed this as completed May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants