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

Commit da0a7e7

Browse files
committed
Merge pull request #166 from jezstephens/issue-165
Fix invalid dir value in build config.
2 parents 9b89d79 + d9c2bc4 commit da0a7e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/requirejs/rails/rjs_driver.js.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var requirejs = require('<%= rjs_path %>'),
55
baseConfig = <%=
66
modifiedHash = build_config.select {|k, _| k != "modules"}
77
pathsHash = modifiedHash["paths"]
8-
modifiedHash["dir"] = self.target_dir
8+
modifiedHash["dir"] = self.target_dir.to_s
99
modifiedHash["paths"] = pathsHash.select {|_, v| !v.is_a?(Array)} if !pathsHash.nil?
1010

1111
JSON.pretty_generate(modifiedHash)

0 commit comments

Comments
 (0)