Normalized data in Redux, fix for asset URLs when rendered outside request
This commit is contained in:
parent
7939a216ff
commit
1022d682dc
9 changed files with 71 additions and 27 deletions
|
@ -214,6 +214,6 @@ module AtomBuilderHelper
|
|||
end
|
||||
|
||||
def single_link_avatar(xml, account, size, px)
|
||||
xml.link('rel' => 'avatar', 'type' => account.avatar_content_type, 'media:width' => px, 'media:height' =>px, 'href' => asset_url(account.avatar.url(size, false)))
|
||||
xml.link('rel' => 'avatar', 'type' => account.avatar_content_type, 'media:width' => px, 'media:height' =>px, 'href' => full_asset_url(account.avatar.url(size, false)))
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
module RoutingHelper
|
||||
extend ActiveSupport::Concern
|
||||
include Rails.application.routes.url_helpers
|
||||
include ActionView::Helpers::AssetUrlHelper
|
||||
include ActionView::Helpers::AssetTagHelper
|
||||
|
||||
included do
|
||||
def default_url_options
|
||||
ActionMailer::Base.default_url_options
|
||||
end
|
||||
end
|
||||
|
||||
def full_asset_url(source)
|
||||
File.join(root_url, ActionController::Base.helpers.asset_url(source))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue