提交 df115589 编写于 作者: A Alberto Almagro

Privatize ENUM_CONFLICT_MESSAGE constant

上级 9b964011
......@@ -224,6 +224,7 @@ def assert_valid_enum_definition_values(values)
"You tried to define an enum named \"%{enum}\" on the model \"%{klass}\", but " \
"this will generate a %{type} method \"%{method}\", which is already defined " \
"by %{source}."
private_constant :ENUM_CONFLICT_MESSAGE
def detect_enum_conflict!(enum_name, method_name, klass_method = false)
if klass_method && dangerous_class_method?(method_name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册