spec/document_ext.rb in mongodoc-0.1.2 vs spec/document_ext.rb in mongodoc-0.2.0

- old
+ new

@@ -1,9 +1,9 @@ module MongoDoc - class Document + module Document def errors_on(attribute) self.valid? [self.errors.on(attribute)].flatten.compact end alias :error_on :errors_on end -end \ No newline at end of file +end