lib/couchrest/model/errors.rb in couchrest_model-2.0.4 vs lib/couchrest/model/errors.rb in couchrest_model-2.1.0.beta1
- old
+ new
@@ -19,7 +19,15 @@
end
end
end
class DocumentNotFound < Errors::CouchRestModelError; end
+
+ class DatabaseNotDefined < Errors::CouchRestModelError
+ def initialize(msg = nil)
+ msg ||= "Database must be defined in model or view!"
+ super(msg)
+ end
+ end
+
end
end