about summary refs log tree commit diff
path: root/app/helpers/routing_helper.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-04 14:04:26 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-04 14:04:26 +0200
commit1022d682dc915bcbf3076c0280f29472068830bb (patch)
tree6ede8a3c1cb66e175efcd56af347dc2931806284 /app/helpers/routing_helper.rb
parent7939a216ff5cc7ac6bb30e850a21355f04fdebe5 (diff)
Normalized data in Redux, fix for asset URLs when rendered outside request
Diffstat (limited to 'app/helpers/routing_helper.rb')
-rw-r--r--app/helpers/routing_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/routing_helper.rb b/app/helpers/routing_helper.rb
index cd8132f07..101382604 100644
--- a/app/helpers/routing_helper.rb
+++ b/app/helpers/routing_helper.rb
@@ -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