提交 604eb8ab 编写于 作者: J Jeremy Kemper

Fix announcement of very long migration names. Closes #5722.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 c1c940fe
*SVN*
* Fix announcement of very long migration names. #5722 [blake@near-time.com]
* The exists? class method should treat a string argument as an id rather than as conditions. #5698 [jeremy@planetargon.com]
* Fixed to_xml with :include misbehaviors when invoked on array of model instances #5690 [alexkwolfe@gmail.com]
......
......@@ -244,7 +244,8 @@ def write(text="")
def announce(message)
text = "#{name}: #{message}"
write "== %s %s" % [ text, "=" * (75 - text.length) ]
length = [0, 75 - text.length].max
write "== %s %s" % [text, "=" * length]
end
def say(message, subitem=false)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册