class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  before_filter :authenticate_admin!

  # Don't use SSL for the TrackingController and only in production
  force_ssl :if => Proc.new{
    r = (controller_name != "tracking" && Rails.env.production?)
    puts "***** controller_name: #{controller_name}, force_ssl here: #{r} *****"
    r
  }
end

class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  before_filter :authenticate_admin!

  # Don't use SSL for the TrackingController and only in production
  force_ssl :if => Proc.new{
    r = (controller_name != "tracking" && Rails.env.production?)
    logger.info "***** controller_name: #{controller_name}, force_ssl here: #{r} *****"
    r
  }
end

Use logger to output debugging info
Use logger to output debugging info
