Skip to content

Commit

Permalink
Remove module TravelSupportProgram::ForceSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorgs committed Jan 10, 2014
1 parent e87ff3f commit e1c38bd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
3 changes: 1 addition & 2 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
class ApplicationController < ActionController::Base
extend TravelSupportProgram::ForceSsl

force_ssl_if_available
force_ssl :unless => Proc.new { Rails.env.test? || Rails.env.development? }
before_filter :authenticate_and_audit_user, :unless => :devise_controller?
load_and_authorize_resource :unless => :devise_controller?
before_filter :configure_permitted_parameters, if: :devise_controller?
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/user_profiles_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class UserProfilesController < ApplicationController
force_ssl_if_available
force_ssl :unless => Proc.new { Rails.env.test? || Rails.env.development? }
before_filter :set_user_and_profile
before_filter :remove_role_from_params, :only => [:update, :update_password]

Expand Down
9 changes: 0 additions & 9 deletions lib/travel_support_program/force_ssl.rb

This file was deleted.

0 comments on commit e1c38bd

Please sign in to comment.