1
0
Fork 0
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:
Samuel Cochran 2011-06-25 03:34:13 +08:00
parent dba8f91f99
commit 2b64c6d951
7 changed files with 9 additions and 6 deletions

View file

@ -1,4 +1,4 @@
class Devise::ConfirmationsController < ApplicationController
class Devise::ConfirmationsController < DeviseController
include Devise::Controllers::InternalHelpers
# GET /resource/confirmation/new

View file

@ -1,4 +1,4 @@
class Devise::OmniauthCallbacksController < ApplicationController
class Devise::OmniauthCallbacksController < DeviseController
include Devise::Controllers::InternalHelpers
def failure

View file

@ -1,4 +1,4 @@
class Devise::PasswordsController < ApplicationController
class Devise::PasswordsController < DeviseController
prepend_before_filter :require_no_authentication
include Devise::Controllers::InternalHelpers

View file

@ -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

View file

@ -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

View file

@ -1,4 +1,4 @@
class Devise::UnlocksController < ApplicationController
class Devise::UnlocksController < DeviseController
prepend_before_filter :require_no_authentication
include Devise::Controllers::InternalHelpers

View file

@ -0,0 +1,3 @@
# All Devise controllers are inherited from here.
class DeviseController < ApplicationController
end