aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2012-03-29 01:58:11 -0700
committerBen Woosley <ben.woosley@gmail.com>2012-03-29 02:55:04 -0700
commitcec170b9634b4028681eb227a36664e930aed4ca (patch)
treedc162d6951dfed9384642ec2146a3801742a6ad5
parentf7a39c848a2e3fb1bf51bd35a9f4223cb82c2eae (diff)
downloadrails-cec170b9634b4028681eb227a36664e930aed4ca.tar.gz
rails-cec170b9634b4028681eb227a36664e930aed4ca.tar.bz2
rails-cec170b9634b4028681eb227a36664e930aed4ca.zip
Define Paths::Root#[]= in terms of #add.
-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={})