mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
bug fix: not to force https in env production for root_url helper
This commit is contained in:
parent
99801bb02a
commit
a0fef8d046
@ -35,7 +35,7 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
def default_url_options
|
||||
Rails.env.production? ? { protocol: 'https' } : {}
|
||||
{ :host => Rails.application.secrets.default_host, protocol: Rails.application.secrets.default_protocol }
|
||||
end
|
||||
|
||||
def permission_denied
|
||||
|
@ -2,5 +2,5 @@ json.title notification.notification_type
|
||||
json.description t('.export')+' '+
|
||||
t(".#{notification.attached_object.category}_#{notification.attached_object.export_type}")+' '+
|
||||
t('.is_over')+' '+
|
||||
link_to( t('.download_here'), "#{root_url}api/exports/#{notification.attached_object.id}/download" )+'.'
|
||||
link_to( t('.download_here'), "api/exports/#{notification.attached_object.id}/download" )+'.'
|
||||
json.url notification_url(notification, format: :json)
|
Loading…
Reference in New Issue
Block a user