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

Add raise: false to skip_before_filter #626

Closed
wants to merge 1 commit into from
Closed

Add raise: false to skip_before_filter #626

wants to merge 1 commit into from

Conversation

j-dexx
Copy link
Contributor

@j-dexx j-dexx commented Jan 10, 2016

This fixes issue #621

In rails 5 if the filter has not been defined then
an error will be raised.

This change addresses the need by:

Adding raise: false to the passwords, sessions and
users controller

Why:

In rails 5 if the filter has not been defined then
an error will be raise

This change addresses the need by:

Adding raise: false to the passwords, sessions and
users controller
@@ -1,7 +1,7 @@
class Clearance::SessionsController < Clearance::BaseController
before_filter :redirect_signed_in_users, only: [:new]
skip_before_filter :require_login, only: [:create, :new, :destroy]
skip_before_filter :authorize, only: [:create, :new, :destroy]
skip_before_filter :require_login, only: [:create, :new, :destroy], raise: false

Choose a reason for hiding this comment

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

Line is too long. [82/80]

@derekprior
Copy link
Contributor

Merged in 23d93b8 - Thanks!

@derekprior derekprior closed this Jan 11, 2016
@j-dexx j-dexx deleted the skip_before_filter_raise_false branch January 11, 2016 13:26
@j-dexx j-dexx restored the skip_before_filter_raise_false branch January 11, 2016 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants