mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
Convert before_filter to before_action
`before_filter` has been removed in future versions of rails. Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
This commit is contained in:
parent
dab358cad0
commit
60ae4f6f5f
13 changed files with 39 additions and 39 deletions
|
|
@ -55,7 +55,7 @@ module LoginSystem
|
|||
true
|
||||
end
|
||||
|
||||
# When called with before_filter :login_from_cookie will check for an :auth_token
|
||||
# When called with before_action :login_from_cookie will check for an :auth_token
|
||||
# cookie and log the user back in if appropriate
|
||||
def login_from_cookie
|
||||
return unless cookies[:auth_token] && !logged_in?
|
||||
|
|
@ -82,7 +82,7 @@ module LoginSystem
|
|||
|
||||
# login_required filter. add
|
||||
#
|
||||
# before_filter :login_required
|
||||
# before_action :login_required
|
||||
#
|
||||
# if the controller should be under any rights management.
|
||||
# for finer access control you can overwrite
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue