This project is archived and is in readonly mode.
routes => :except being inherited by sub-level resources
-
Tatsuro BABA
+1 I just encountered exactly the same problem.
So, attached a patch with failing test cases. -
Repository
- State changed from new to resolved
(from [f4be0041c605daad2406ec41fa7dfa4388af5f31]) Refactor handling of :only and :except options. The rules are:
- Don't inherit when specified as an option on a
resource
- Don't push into scope when specified as an option on a
resource
- Resources pull in :only or :except options from scope
- Either :only or :except in nested scope overwrites parent scope
[#5048 routes => :except being inherited by sub-level resources state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/f4be0041c605daad2406ec41fa7dfa...
