Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
Fix generating javascript tag using requirejs_include_tag with `Rai…
Browse files Browse the repository at this point in the history
…ls.application.config.relative_url_root` set
  • Loading branch information
bolshakov committed Mar 1, 2018
1 parent 749a12e commit 9679ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/requirejs_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def requirejs_include_tag(name = nil, &block)

once_guard do
rjs_attributes = {
src: javascript_path("require")
src: path_to_javascript("require")
}

rjs_attributes = rjs_attributes.merge(Hash[block.call(controller).map do |key, value|
Expand Down

0 comments on commit 9679ab2

Please sign in to comment.