diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2012-03-29 01:58:11 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2012-03-29 02:55:04 -0700 |
commit | cec170b9634b4028681eb227a36664e930aed4ca (patch) | |
tree | dc162d6951dfed9384642ec2146a3801742a6ad5 /railties/lib | |
parent | f7a39c848a2e3fb1bf51bd35a9f4223cb82c2eae (diff) | |
download | rails-cec170b9634b4028681eb227a36664e930aed4ca.tar.gz rails-cec170b9634b4028681eb227a36664e930aed4ca.tar.bz2 rails-cec170b9634b4028681eb227a36664e930aed4ca.zip |
Define Paths::Root#[]= in terms of #add.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/paths.rb | 3 |
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={}) |