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

Fix for user config file not being propagated to run_config and build_config #198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/requirejs/rails/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def initialize(application)
uglify
uglify2
useStrict
wrap
wrapShim
}
end

Expand Down Expand Up @@ -133,6 +133,9 @@ def user_config=(cfg)
if url = cfg.delete('baseUrl')
raise Requirejs::ConfigError, "baseUrl is not needed or permitted in the configuration"
end
# delete any cached configs, will be lazily resolved
self.delete(:build_config)
self.delete(:run_config)
self[:user_config] = cfg
end

Expand Down