Sha256: 9c24ff39e7b7a6142ab931e9a85028c18bcc3a9f4f51700a321828c5a30f51c0

Contents?: true

Size: 541 Bytes

Versions: 18

Compression:

Stored size: 541 Bytes

Contents

module Locomotive
  class SessionsController < ::Devise::SessionsController

    include Locomotive::Routing::SiteDispatcher

    layout '/locomotive/layouts/not_logged_in'

    before_filter :require_site

    before_filter :set_locale

    helper 'locomotive/base'

    protected

    def after_sign_in_path_for(resource)
      pages_path
    end

    def after_sign_out_path_for(resource)
      request.protocol + request.host_with_port
    end

    def set_locale
      I18n.locale = current_site.accounts.first.locale
    end

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
locomotive_cms-2.5.7 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.5.6 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.5.6.rc2 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.5.6.rc1 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.5.5 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.5.4 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.5.3 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.5.2 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.5.1 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.5.0 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.5.0.rc3 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.5.0.rc2 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.5.0.rc1 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.4.1 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.4.0 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.3.1 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.3.0 app/controllers/locomotive/sessions_controller.rb
locomotive_cms-2.2.3 app/controllers/locomotive/sessions_controller.rb