File tree Expand file tree Collapse file tree
app/controllers/open_sesame
spec/dummy/app/controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,5 +51,5 @@ mount OpenSesame::Engine => OpenSesame.mount_prefix
5151Place the following in your application_controller:
5252
5353``` ruby
54- before_filter :authenticate_opensesame!
54+ before_action :authenticate_opensesame!
5555```
Original file line number Diff line number Diff line change 11module OpenSesame
22 class SessionsController < OpenSesame ::ApplicationController
33
4- skip_before_filter :authenticate_opensesame!
4+ skip_before_action :authenticate_opensesame! , raise : false
55 skip_authorization_check if defined? ( CanCan )
6- before_filter :attempt_auto_authenticate , :only => :new
7- after_filter :clear_auto_attempt! , :only => :create
6+ before_action :attempt_auto_authenticate , :only => :new
7+ after_action :clear_auto_attempt! , :only => :create
88
99 def new
1010 if error_message
Original file line number Diff line number Diff line change 11class ApplicationController < ActionController ::Base
22 protect_from_forgery
33
4- before_filter :authenticate_opensesame!
4+ before_action :authenticate_opensesame!
55end
You can’t perform that action at this time.
0 commit comments