Permalink
Browse files

no longer need the scope ivar

  • Loading branch information...
1 parent 03de3a0 commit d00bbe64aea227df44729f5ea522e2a0462a0797 @tenderlove tenderlove committed May 30, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -62,11 +62,10 @@ def constraint_args(constraint, request)
class Mapping #:nodoc:
ANCHOR_CHARACTERS_REGEX = %r{\A(\\A|\^)|(\\Z|\\z|\$)\Z}
- attr_reader :scope, :options, :requirements, :conditions, :defaults
+ attr_reader :options, :requirements, :conditions, :defaults
attr_reader :to, :default_controller, :default_action, :as, :anchor
def initialize(scope, path, options)
- @scope = scope
@requirements, @conditions, @defaults = {}, {}, {}
@defaults.merge!(scope[:defaults]) if scope[:defaults]

0 comments on commit d00bbe6

Please sign in to comment.