提交 93e752cf 编写于 作者: R Rafael Mendonça França

Merge pull request #12917 from akshay-vishnoi/refactor

avoiding iterations and calling of underscore on all elements of array
......@@ -90,7 +90,7 @@ def namespaced_class_path
end
def namespaced_path
@namespaced_path ||= namespace.name.split("::").map {|m| m.underscore }[0]
@namespaced_path ||= namespace.name.split("::").first.underscore
end
def class_name
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册