Sha256: cd305fa2be2cd8468a30ac424282df004e94efe796f1c85bf00b312e12b498d4

Contents?: true

Size: 415 Bytes

Versions: 8

Compression:

Stored size: 415 Bytes

Contents

module Locomotive
  class RegistrationsController < ::Devise::RegistrationsController

    layout '/locomotive/layouts/not_logged_in'

    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

8 entries across 8 versions & 1 rubygems

Version Path
locomotivecms-3.0.0.rc4 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.0.0.rc3 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.0.0.rc2 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.0.0.rc1 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.0.0.pre.beta.1 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.0.0.pre.alpha.3 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.0.0.pre.alpha.2 app/controllers/locomotive/registrations_controller.rb
locomotivecms-3.0.0.pre.alpha app/controllers/locomotive/registrations_controller.rb