Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
make #public_url infer the protocol from rails config
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Titcomb committed Aug 31, 2017
1 parent 700edc7 commit c2a82f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/outpost/model/routing.rb
Expand Up @@ -130,7 +130,7 @@ def route_hash
def public_url(options={})
if path = self.public_path(options)
File.join(
"http://#{Rails.application.default_url_options[:host]}", path)
"#{Rails.application.default_url_options[:protocol] || 'http'}://#{Rails.application.default_url_options[:host]}", path)
end
end

Expand Down

0 comments on commit c2a82f8

Please sign in to comment.