Skip to content

Commit

Permalink
Fix syntax for MRI 2.5.0-preview1.
Browse files Browse the repository at this point in the history
  • Loading branch information
pat authored and Chris Bielinski committed Dec 28, 2017
1 parent a0af72e commit 53957d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/devise/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Devise::SessionsController < DeviseController
prepend_before_filter :require_no_authentication, only: [:new, :create]
prepend_before_filter :allow_params_authentication!, only: :create
prepend_before_filter :verify_signed_out_user, only: :destroy
prepend_before_filter only: [:create, :destroy] { request.env["devise.skip_timeout"] = true }
prepend_before_filter(only: [:create, :destroy]) { request.env["devise.skip_timeout"] = true }

# GET /resource/sign_in
def new
Expand Down

2 comments on commit 53957d9

@halida
Copy link

@halida halida commented on 53957d9 Jan 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pat Also please fix 3-stable version, Thanks.

@pat
Copy link
Contributor Author

@pat pat commented on 53957d9 Jan 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@halida I'm not a Devise committer - this was just a PR I submitted. I'm not across how 3-stable is maintained, but I'm guessing the team would welcome similar patches for that!

Please sign in to comment.