提交 ef771552 编写于 作者: J Joshua Peek

Don't really care about reloading routes when inflections are

changed.
上级 eeb1f472
......@@ -366,16 +366,5 @@ def controller_relative_to(controller, previous)
end
end
end
ActiveSupport::Inflector.module_eval do
# Ensures that routes are reloaded when Rails inflections are updated.
def inflections_with_route_reloading(&block)
returning(inflections_without_route_reloading(&block)) {
ActionDispatch::Routing::Routes.reload! if block_given?
}
end
alias_method_chain :inflections, :route_reloading
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册