diff options
Diffstat (limited to 'app/helpers/routing_helper.rb')
-rw-r--r-- | app/helpers/routing_helper.rb | 6 |
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 |