Make all controllers inherit from a single DeviseController
This commit is contained in:
parent
dba8f91f99
commit
2b64c6d951
|
@ -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
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
# All Devise controllers are inherited from here.
|
||||
class DeviseController < ApplicationController
|
||||
end
|
Loading…
Reference in New Issue