mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Make all controllers inherit from a single DeviseController
This commit is contained in:
parent
dba8f91f99
commit
2b64c6d951
7 changed files with 9 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
class Devise::ConfirmationsController < ApplicationController
|
||||
class Devise::ConfirmationsController < DeviseController
|
||||
include Devise::Controllers::InternalHelpers
|
||||
|
||||
# GET /resource/confirmation/new
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Devise::OmniauthCallbacksController < ApplicationController
|
||||
class Devise::OmniauthCallbacksController < DeviseController
|
||||
include Devise::Controllers::InternalHelpers
|
||||
|
||||
def failure
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Devise::PasswordsController < ApplicationController
|
||||
class Devise::PasswordsController < DeviseController
|
||||
prepend_before_filter :require_no_authentication
|
||||
include Devise::Controllers::InternalHelpers
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Devise::RegistrationsController < ApplicationController
|
||||
class Devise::RegistrationsController < DeviseController
|
||||
prepend_before_filter :require_no_authentication, :only => [ :new, :create, :cancel ]
|
||||
prepend_before_filter :authenticate_scope!, :only => [:edit, :update, :destroy]
|
||||
include Devise::Controllers::InternalHelpers
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Devise::SessionsController < ApplicationController
|
||||
class Devise::SessionsController < DeviseController
|
||||
prepend_before_filter :require_no_authentication, :only => [ :new, :create ]
|
||||
include Devise::Controllers::InternalHelpers
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Devise::UnlocksController < ApplicationController
|
||||
class Devise::UnlocksController < DeviseController
|
||||
prepend_before_filter :require_no_authentication
|
||||
include Devise::Controllers::InternalHelpers
|
||||
|
||||
|
|
3
app/controllers/devise_controller.rb
Normal file
3
app/controllers/devise_controller.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
# All Devise controllers are inherited from here.
|
||||
class DeviseController < ApplicationController
|
||||
end
|
Loading…
Reference in a new issue