Skip to content

Commit

Permalink
Merge pull request #4523 from trammel/rails-5.1-render-text
Browse files Browse the repository at this point in the history
Rails 5.1 fix: Replaced render :text 404 with :plain in omniauth
  • Loading branch information
rafaelfranca committed May 3, 2017
2 parents 8321356 + ce08d7a commit cc6a582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/devise/omniauth_callbacks_controller.rb
Expand Up @@ -2,7 +2,7 @@ class Devise::OmniauthCallbacksController < DeviseController
prepend_before_action { request.env["devise.skip_timeout"] = true }

def passthru
render status: 404, text: "Not found. Authentication passthru."
render status: 404, plain: "Not found. Authentication passthru."
end

def failure
Expand Down

0 comments on commit cc6a582

Please sign in to comment.