Sha256: 9c198dec5f7d19f2a753ced221e4311d0f5141be88b1e35425116ab0c3ee3456
Contents?: true
Size: 673 Bytes
Versions: 8
Compression:
Stored size: 673 Bytes
Contents
module Locomotive class SessionsController < ::Devise::SessionsController include Locomotive::Concerns::WithinSiteController within_site_only_if_existing true # Note: do not validate the membership layout '/locomotive/layouts/not_logged_in' before_filter :set_locale helper Locomotive::BaseHelper private def after_sign_in_path_for(resource) current_site? ? dashboard_path(current_site) : sites_path end def after_sign_out_path_for(resource) new_locomotive_account_session_path end def set_locale if current_site? I18n.locale = current_site.accounts.first.locale end end end end
Version data entries
8 entries across 8 versions & 1 rubygems