Sha256: 310be6603ee00aa19a483d297de76b4dce93fb3b587274442d7b026ee052d7b6

Contents?: true

Size: 642 Bytes

Versions: 13

Compression:

Stored size: 642 Bytes

Contents

module Locomotive
  class RegistrationsController < ::Devise::RegistrationsController

    include Locomotive::Concerns::SslController
    include Locomotive::Concerns::RedirectToMainHostController

    layout '/locomotive/layouts/account'

    before_action :configure_permitted_parameters

    helper Locomotive::BaseHelper

    before_action :set_locale

    private

    def after_sign_up_path_for(resource)
      sites_path
    end

    def configure_permitted_parameters
      devise_parameter_sanitizer.permit(:sign_up, keys: [:name])
    end

    def set_locale
      I18n.locale = Locomotive.config.default_locale
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
locomotivecms-4.1.1 app/controllers/locomotive/registrations_controller.rb
locomotivecms-4.1.0 app/controllers/locomotive/registrations_controller.rb
locomotivecms-4.1.0.rc1 app/controllers/locomotive/registrations_controller.rb
locomotivecms-4.0.3 app/controllers/locomotive/registrations_controller.rb
locomotivecms-4.0.2 app/controllers/locomotive/registrations_controller.rb
locomotivecms-4.0.1 app/controllers/locomotive/registrations_controller.rb
locomotivecms-4.0.0 app/controllers/locomotive/registrations_controller.rb
locomotivecms-4.0.0.rc0 app/controllers/locomotive/registrations_controller.rb
locomotivecms-4.0.0.alpha3 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.4.1 app/controllers/locomotive/registrations_controller.rb
locomotivecms-4.0.0.alpha2 app/controllers/locomotive/registrations_controller.rb
locomotivecms-4.0.0.alpha1 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.4.0 app/controllers/locomotive/registrations_controller.rb