From 047af8dd3c304fbfe625be8b7c600005c69fa593 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 13 Aug 2014 19:29:39 -0700 Subject: change to attr_reader --- actionpack/lib/action_dispatch/routing/mapper.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'actionpack/lib') 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 -- cgit v1.2.3