lib/couchrest/model/base.rb in couchrest_model-2.0.0 vs lib/couchrest/model/base.rb in couchrest_model-2.0.1
- old
+ new
@@ -54,10 +54,10 @@
super()
prepare_all_attributes(attributes, options)
# set the instance's database, if provided
self.database = options[:database] unless options[:database].nil?
unless self['_id'] && self['_rev']
- self[self.model_type_key] = self.class.to_s
+ self[self.model_type_key] = self.class.model_type_value
end
yield self if block_given?
after_initialize if respond_to?(:after_initialize)