1
0
Fork 0
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:
Ben Woosley 2012-03-29 01:58:11 -07:00
parent f7a39c848a
commit cec170b963

View file

@ -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={})