Remove controller-level force_ssl checks.

Obsoleted by force_ssl being globally enabled by default.
This commit is contained in:
evazion
2018-01-28 19:59:39 -06:00
parent c50ad41792
commit d70a0a64bd
3 changed files with 0 additions and 18 deletions

View File

@@ -1,7 +1,6 @@
class UserUpgradesController < ApplicationController
before_action :member_only, :only => [:new, :show]
helper_method :user
force_ssl :if => :ssl_enabled?
skip_before_action :verify_authenticity_token, only: [:create]
def create
@@ -57,8 +56,4 @@ class UserUpgradesController < ApplicationController
redirect_to user_upgrade_path
end
def ssl_enabled?
!Rails.env.development? && !Rails.env.test?
end
end