Simplify inspect implementation

After 304d38c053 we don't need the
new_record? check anymore.
This commit is contained in:
Santiago Pastorino 2010-12-28 00:49:34 -02:00
parent 304d38c053
commit eb2ebe7680
1 changed files with 1 additions and 1 deletions

View File

@ -1630,7 +1630,7 @@ MSG
# Returns the contents of the record as a nicely formatted string.
def inspect
attributes_as_nice_string = self.class.column_names.collect { |name|
if has_attribute?(name) || new_record?
if has_attribute?(name)
"#{name}: #{attribute_for_inspect(name)}"
end
}.compact.join(", ")