Merge pull request #19700 from tancnle/trivial-shallow-nesting-depth-count

A shorter and more concise version of select..size
This commit is contained in:
Rafael Mendonça França 2015-04-08 20:08:06 -03:00
commit 8c8e9b34d5
1 changed files with 1 additions and 1 deletions

View File

@ -1678,7 +1678,7 @@ module ActionDispatch
end
def shallow_nesting_depth #:nodoc:
@nesting.select(&:shallow?).size
@nesting.count(&:shallow?)
end
def param_constraint? #:nodoc: