Sha256: 12769d271684511d2053eb97d9170697dc4b92058cad0406ffc0eb8affa129ee

Contents?: true

Size: 521 Bytes

Versions: 14

Compression:

Stored size: 521 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

    private

    def after_sign_up_path_for(resource)
      sites_path
    end

    def configure_permitted_parameters
      devise_parameter_sanitizer.for(:sign_up) << :name
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
locomotivecms-3.1.2 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.2.1 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.2.0 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.2.0.rc2 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.2.0.rc1 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.1.1 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.1.0 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.1.0.rc3 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.1.0.rc2 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.1.0.rc1 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.0.1 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.0.0 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.0.0.rc7 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.0.0.rc6 app/controllers/locomotive/registrations_controller.rb