提交 6c42c142 编写于 作者: V Vijay Dev 提交者: Santiago Pastorino

fix incorrect version in deprecation message

Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
上级 abc06a2f
......@@ -1286,7 +1286,7 @@ def set_sequence_name(value = nil, &block)
# Turns the +table_name+ back into a class name following the reverse rules of +table_name+.
def class_name(table_name = table_name) # :nodoc:
ActiveSupport::Deprecation.warn("ActiveRecord::Base#class_name is deprecated and will be removed in Rails 2.3.9.", caller)
ActiveSupport::Deprecation.warn("ActiveRecord::Base#class_name is deprecated and will be removed in Rails 3.", caller)
# remove any prefix and/or suffix from the table name
class_name = table_name[table_name_prefix.length..-(table_name_suffix.length + 1)].camelize
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册