提交 d00bbe64 编写于 作者: A Aaron Patterson

no longer need the scope ivar

上级 03de3a02
......@@ -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]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册