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

push scope access up for modules

eventually we'll remove the need to access `scope` inside the Mapping
object.
上级 cad27e40
......@@ -72,10 +72,10 @@ def self.build(scope, set, path, as, controller, default_action, options)
defaults = (scope[:defaults] || {}).dup
new scope, set, path, defaults, as, controller, default_action, options
new scope, set, path, defaults, as, controller, default_action, scope[:module], options
end
def initialize(scope, set, path, defaults, as, controller, default_action, options)
def initialize(scope, set, path, defaults, as, controller, default_action, modyoule, options)
@requirements, @conditions = {}, {}
@defaults = defaults
@set = set
......@@ -94,7 +94,7 @@ def initialize(scope, set, path, defaults, as, controller, default_action, optio
ast = path_ast path
path_params = path_params ast
options = normalize_options!(options, formatted, path_params, ast, scope[:module])
options = normalize_options!(options, formatted, path_params, ast, modyoule)
split_constraints(path_params, scope[:constraints]) if scope[:constraints]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册