engine/app/controllers/admin/sessions_controller.rb

24 lines
452 B
Ruby
Raw Normal View History

module Admin
class SessionsController < Devise::SessionsController
include Locomotive::Routing::SiteDispatcher
2010-04-22 23:52:11 +00:00
layout '/admin/layouts/box'
before_filter :require_site
helper 'admin/base', 'admin/box'
protected
def after_sign_in_path_for(resource)
stored_location_for(resource) || admin_pages_url
end
def after_sign_out_path_for(resource)
request.protocol + request.host_with_port
end
end
end