mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Define Paths::Root#[]= in terms of #add.
This commit is contained in:
parent
f7a39c848a
commit
cec170b963
1 changed files with 1 additions and 2 deletions
|
@ -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={})
|
||||
|
|
Loading…
Reference in a new issue