mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 14:58:05 -05:00
Use before_action instead of before_filter
This commit is contained in:
committed by
Leonardo Tegon
parent
c9a2d0654e
commit
d750709250
@@ -76,7 +76,7 @@ end
|
|||||||
class TestController < ApplicationController
|
class TestController < ApplicationController
|
||||||
include Rails.application.routes.url_helpers
|
include Rails.application.routes.url_helpers
|
||||||
|
|
||||||
before_filter :authenticate_user!
|
before_action :authenticate_user!
|
||||||
|
|
||||||
def index
|
def index
|
||||||
render plain: 'Home'
|
render plain: 'Home'
|
||||||
|
|||||||
Reference in New Issue
Block a user