Permalink
Browse files

Define Paths::Root#[]= in terms of #add.

  • Loading branch information...
1 parent f7a39c8 commit cec170b9634b4028681eb227a36664e930aed4ca @Empact Empact committed Mar 29, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 railties/lib/rails/paths.rb
@@ -51,8 +51,7 @@ def initialize(path)
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={})

0 comments on commit cec170b

Please sign in to comment.