提交 78658056 编写于 作者: A Akshay Vishnoi

avoiding iterations and calling of underscore on all elements of array

上级 4c76040e
......@@ -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.
先完成此消息的编辑!
想要评论请 注册