lib/mongo_mapper/plugins/inspect.rb in mongo_mapper-0.15.6 vs lib/mongo_mapper/plugins/inspect.rb in mongo_mapper-0.16.0

- old
+ new

@@ -5,12 +5,14 @@ extend ActiveSupport::Concern def inspect(include_nil = false) keys = include_nil ? key_names : attributes.keys attributes_as_nice_string = keys.sort.collect do |name| - "#{name}: #{self.send(:"#{name}").inspect}" + raw_value = self.send(:"#{name}").inspect + filtered_value = MongoMapper::Utils.filter_param(name, raw_value) + "#{name}: #{filtered_value}" end.join(", ") "#<#{self.class} #{attributes_as_nice_string}>" end end end -end \ No newline at end of file +end