aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--railties/lib/rails/paths.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb
index de4dc5007d..e9bd0f181e 100644
--- a/railties/lib/rails/paths.rb
+++ b/railties/lib/rails/paths.rb
@@ -51,8 +51,7 @@ module Rails
end
def []=(path, value)
- value = Path.new(self, path, [value].flatten) unless value.is_a?(Path)
- @root[path] = value
+ add(path, :with => value)
end
def add(path, options={})