From cec170b9634b4028681eb227a36664e930aed4ca Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Thu, 29 Mar 2012 01:58:11 -0700 Subject: Define Paths::Root#[]= in terms of #add. --- railties/lib/rails/paths.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'railties') 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={}) -- cgit v1.2.3