提交 f1878baa 编写于 作者: A Akira Matsuda

💅

Don't expect the caller of this method to know that the return value has an extra "  "
上级 0978293a
......@@ -16,7 +16,7 @@ def add_routes
unless options[:skip_routes]
actions.reverse_each do |action|
# route prepends two spaces onto the front of the string that is passed, this corrects that.
route generate_routing_code(action)[2..-1]
route generate_routing_code(action)
end
end
end
......@@ -40,7 +40,7 @@ def generate_routing_code(action)
# namespace :bar do
namespace_ladder = regular_class_path.each_with_index.map do |ns, i|
indent(" namespace :#{ns} do\n", i * 2)
end.join
end.join[2..-1]
# Create route
# get 'baz/index'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册