Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Conversation

@Loremaster
Copy link

@Loremaster Loremaster commented Nov 22, 2017

Rails 5 related fixes added:

  • Fixing ArgumentError: Before process_action callback :verify_authenticity_token has not been defined.
  • Replacing before_filter with before_action.
  • Replacing around_filter with around_action.
  • Replacing skip_before_filter with skip_before_action.
  • Replacing prepend_before_filter with prepend_before_action.
  • Using request.env['REQUEST_METHOD'] instead of env['REQUEST_METHOD'] to fix deprecation message.

Also I bumped dummy app to rails 5 version in order for tests to pass. In order to do that I also had to bump devise to "4.3.0"

Those changes will not work with apps using Rails 3.

…icity_token has not been defined" error in Rails 5.

Such error should be silenced. See more: rails/rails#19029
…to fix deprecation message in Rails 5:

DEPRECATION WARNING: env is deprecated and will be removed from Rails 5.1 (called from oauth_client_can_write? at /lib/opro/controllers/concerns/permissions.rb:58)
…ixing failing tests, deprecations and updating config files.
@Loremaster
Copy link
Author

Tests are passing for me locally with ruby 2.3 and Rails 5.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant