lib/couchrest/model/casted_model.rb in couchrest_model-1.1.0.beta vs lib/couchrest/model/casted_model.rb in couchrest_model-1.1.0.beta2
- old
+ new
@@ -51,10 +51,10 @@
return nil if base_doc.nil?
base_doc.id
end
alias :to_key :id
alias :to_param :id
-
+
# Sets the attributes from a hash
def update_attributes_without_saving(hash)
hash.each do |k, v|
raise NoMethodError, "#{k}= method not available, use property :#{k}" unless self.respond_to?("#{k}=")
end