Module CouchRest::Model::Embeddable
In: lib/couchrest/model/embeddable.rb

Methods

Included Modules

CouchRest::Attributes CouchRest::Model::Configuration CouchRest::Model::Properties CouchRest::Model::PropertyProtection CouchRest::Model::Associations CouchRest::Model::Validations CouchRest::Model::Callbacks CouchRest::Model::CastedBy CouchRest::Model::Dirty CouchRest::Model::Callbacks

Public Class methods

Initialize a new Casted Model. Accepts the same options as CouchRest::Model::Base for preparing and initializing attributes.

Public Instance methods

attributes=(hash)

The to_param method is needed for rails to generate resourceful routes. In your controller, remember that it‘s actually the id of the document.

False if the casted model has already been saved in the containing document

new_record?()

Alias for new?

to_key()

Alias for id

to_param()

Alias for id

Sets the attributes from a hash

[Validate]