Skip to content

Commit

Permalink
add config line to force_ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
Stacie Taylor-Cima authored and Stacie Taylor-Cima committed Sep 26, 2018
1 parent aa4d70b commit f5fd1b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/initializers/force_ssl.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if Rails.application.config.force_ssl
Rails.application.routes.default_url_options[:protocol] = 'https'
end

0 comments on commit f5fd1b6

Please sign in to comment.