lib/couchrest/model/base.rb in couchrest_model-1.1.0.beta3 vs lib/couchrest/model/base.rb in couchrest_model-1.1.0.beta4
- old
+ new
@@ -16,12 +16,12 @@
include CouchRest::Model::Collection
include CouchRest::Model::PropertyProtection
include CouchRest::Model::Associations
include CouchRest::Model::Validations
include CouchRest::Model::Designs
- include CouchRest::Model::Dirty
include CouchRest::Model::CastedBy
+ include CouchRest::Model::Dirty
def self.subclasses
@subclasses ||= []
end
@@ -70,17 +70,9 @@
if has_view?(view_name)
return first_from_view(view_name, *args)
end
end
super
- end
-
- ### instance methods
-
- # Checks if we're the top document
- # (overrides base_doc? in casted_by.rb)
- def base_doc?
- !@casted_by
end
## Compatibility with ActiveSupport and older frameworks
# Hack so that CouchRest::Document, which descends from Hash,