1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Force SSL for admin and redirect to configured host.

This commit is contained in:
Dan Barber 2013-04-08 17:17:41 +01:00
parent f738577cc8
commit c82b7bd58b

View File

@ -3,6 +3,8 @@ class Admin::AdminController < ApplicationController
before_filter :authenticate_admin_user! before_filter :authenticate_admin_user!
before_filter :admin_menu before_filter :admin_menu
force_ssl :host => APP_CONFIG[:ssl_hostname]
def admin_menu def admin_menu
@admin_menu = { :dashboard => '', @admin_menu = { :dashboard => '',
:admin_users => '', :admin_users => '',