engine/app/controllers/locomotive/sessions_controller.rb
2011-11-06 12:18:34 +01:00

24 lines
427 B
Ruby

module Locomotive
class SessionsController < ::Devise::SessionsController
include Locomotive::Routing::SiteDispatcher
layout '/locomotive/layouts/not_logged_in'
before_filter :require_site
helper 'locomotive/base'
protected
def after_sign_in_path_for(resource)
pages_url
end
def after_sign_out_path_for(resource)
request.protocol + request.host_with_port
end
end
end