Merge branch 'master' of https://github.com/kanterov/couchrest_model into kanterov
This commit is contained in:
commit
363461fc9d
2 changed files with 23 additions and 0 deletions
|
@ -53,6 +53,13 @@ module CouchRest::Model
|
|||
end
|
||||
alias :to_key :id
|
||||
alias :to_param :id
|
||||
|
||||
# Fixes belongs_to assocations.
|
||||
# See it "should allow to reference association by id in casted model" in
|
||||
# assocations_spec.rb
|
||||
def model_proxy
|
||||
nil
|
||||
end
|
||||
|
||||
# Sets the attributes from a hash
|
||||
def update_attributes_without_saving(hash)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue