Skip to content

Commit

Permalink
Merge pull request #2 from parachutehealth/WF-5861-rails-6-1
Browse files Browse the repository at this point in the history
WF-5861 rails 6 1
  • Loading branch information
quainjn authored Dec 16, 2020
2 parents 63511b3 + 1f43a11 commit 6024ba0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions app/controllers/swagger_engine/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ class ApplicationController < ActionController::Base

before_action :authenticate

force_ssl if: :require_ssl
def require_ssl
SwaggerEngine.configuration.force_ssl || false
end

protected
def authenticate
if SwaggerEngine.configuration.admin_username
Expand Down
2 changes: 0 additions & 2 deletions lib/swagger_engine/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class Configuration
attr_accessor :oauth_app_name
attr_accessor :oauth_realm
attr_accessor :oauth_redirect_url

attr_accessor :force_ssl
end
class << self
attr_writer :configuration
Expand Down

0 comments on commit 6024ba0

Please sign in to comment.