Remove controller-level force_ssl checks.
Obsoleted by force_ssl being globally enabled by default.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user