lib/couchrest/model/base.rb in couchrest_model-2.0.0.beta vs lib/couchrest/model/base.rb in couchrest_model-2.0.0.beta2

- old
+ new

@@ -1,10 +1,11 @@ module CouchRest module Model class Base < CouchRest::Document - extend ActiveModel::Naming + extend ActiveModel::Naming + include ActiveModel::Conversion include CouchRest::Model::Configuration include CouchRest::Model::Connection include CouchRest::Model::Persistence include CouchRest::Model::DocumentQueries @@ -60,14 +61,9 @@ after_initialize if respond_to?(:after_initialize) run_callbacks(:initialize) { self } end - def to_key - new? ? nil : [id] - end - - alias :to_param :id alias :new_record? :new? alias :new_document? :new? # Compare this model with another by confirming to see # if the IDs and their databases match!