diff options
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index fa273ac201..209af7a16d 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -1901,7 +1901,7 @@ module ActionDispatch RESOURCE_SCOPES = [:resource, :resources] - attr_reader :parent + attr_reader :parent, :scope_level def initialize(hash, parent = {}, scope_level = nil) @hash = hash @@ -1909,10 +1909,6 @@ module ActionDispatch @scope_level = scope_level end - def scope_level - @scope_level - end - def nested? scope_level == :nested end |