Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
another fix in inspect
  • Loading branch information
kkamil committed Feb 12, 2012
1 parent 74a76e5 commit 6ca8580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo_mapper/plugins/inspect.rb
Expand Up @@ -7,7 +7,7 @@ module Inspect
def inspect(include_nil = false)
keys = include_nil ? key_names : attributes.keys
attributes_as_nice_string = keys.sort.collect do |name|
"#{name}: #{(self[name] || self.send(:"#{name}")).inspect}"
"#{name}: #{self.send(:"#{name}").inspect}"
end.join(", ")
"#<#{self.class} #{attributes_as_nice_string}>"
end
Expand Down

0 comments on commit 6ca8580

Please sign in to comment.