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

stop using a hash for parameterizing

上级 5f0b37c4
......@@ -350,8 +350,7 @@ def add_route(app, conditions = {}, requirements = {}, defaults = {}, name = nil
end
class Generator #:nodoc:
PARAMETERIZE = {
:parameterize => lambda do |name, value|
PARAMETERIZE = lambda do |name, value|
if name == :controller
value
elsif value.is_a?(Array)
......@@ -361,7 +360,6 @@ class Generator #:nodoc:
param.split('/').map { |v| Rack::Mount::Utils.escape_uri(v) }.join("/")
end
end
}
attr_reader :options, :recall, :set, :named_route
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册