提交 559979b9 编写于 作者: P Piotr Sarnacki

Always convert railtie_name to string

上级 43a2aef3
......@@ -166,7 +166,7 @@ def abstract_railtie?
end
def railtie_name(name = nil)
@railtie_name = name if name
@railtie_name = name.to_s if name
@railtie_name ||= ActiveSupport::Inflector.underscore(self.name).gsub("/", "_")
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册