OpenFest: Introduce a DeviseController mixin
This commit is contained in:
parent
5d5a5a1cbf
commit
fdbba32378
|
@ -0,0 +1,8 @@
|
||||||
|
module OpenFest::Users::DeviseController
|
||||||
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
|
included do
|
||||||
|
before_filter :require_current_conference!
|
||||||
|
layout 'open_fest/application'
|
||||||
|
end
|
||||||
|
end
|
|
@ -1,3 +1,3 @@
|
||||||
class OpenFest::Users::ConfirmationsController < Devise::ConfirmationsController
|
class OpenFest::Users::ConfirmationsController < Devise::ConfirmationsController
|
||||||
layout 'open_fest/application'
|
include OpenFest::Users::DeviseController
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
class OpenFest::Users::PasswordsController < Devise::PasswordsController
|
class OpenFest::Users::PasswordsController < Devise::PasswordsController
|
||||||
layout 'open_fest/application'
|
include OpenFest::Users::DeviseController
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
class OpenFest::Users::RegistrationsController < Devise::RegistrationsController
|
class OpenFest::Users::RegistrationsController < Devise::RegistrationsController
|
||||||
layout 'open_fest/application'
|
include OpenFest::Users::DeviseController
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
class OpenFest::Users::SessionsController < Devise::SessionsController
|
class OpenFest::Users::SessionsController < Devise::SessionsController
|
||||||
layout 'open_fest/application'
|
include OpenFest::Users::DeviseController
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
class OpenFest::Users::UnlocksController < Devise::UnlocksController
|
class OpenFest::Users::UnlocksController < Devise::UnlocksController
|
||||||
layout 'open_fest/application'
|
include OpenFest::Users::DeviseController
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue