mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-22 18:20: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
|
|
@ -1,8 +1,8 @@
|
|||
class UsersController < ApplicationController
|
||||
|
||||
before_filter :admin_login_required, :only => [ :index, :show, :destroy ]
|
||||
skip_before_filter :login_required, :only => [ :new, :create ]
|
||||
prepend_before_filter :login_optional, :only => [ :new, :create ]
|
||||
before_action :admin_login_required, :only => [ :index, :show, :destroy ]
|
||||
skip_before_action :login_required, :only => [ :new, :create ]
|
||||
prepend_before_action :login_optional, :only => [ :new, :create ]
|
||||
|
||||
# GET /users GET /users.xml
|
||||
def index
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue