-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove conditional code that targets Rails 5.1 #3505
Remove conditional code that targets Rails 5.1 #3505
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
unless RAILS_52_OR_ABOVE | ||
protect_from_forgery with: :exception | ||
end | ||
protect_from_forgery with: :exception |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code was executed only when RAILS_52_OR_ABOVE
was false, so I think the line should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right!
Adding some longer config would result in changing all of them and breaking git history everytime.
It was under a conditional block but now it makes no sense to have it separate from the other configurations.
5c01338
to
badd349
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kennyadsl thank you 👍
Description
🧹🧹🧹🧹
We still have some conditional code that targets Rails 5.1, which has been deprecated and we do not support anymore.
This PR removes that code in order to keep the codebase as clean as possible.
Checklist:
[ ] I have updated Guides and README accordingly to this change (if needed)[ ] I have added tests to cover this change (if needed)[ ] I have attached screenshots to this PR for visual changes (if needed)