Sha256: 1fd771259362d93b2bc09ef6f8c063b038c37e63dce1ddbb0a4f554dc7c26e87

Contents?: true

Size: 380 Bytes

Versions: 8

Compression:

Stored size: 380 Bytes

Contents

class Card < CouchRest::Model::Base 
  # Set the default database to use
  use_database DB
  
  # Official Schema
  property :first_name
  property :last_name,        :alias     => :family_name
  property :read_only_value,  :read_only => true
  property :cast_alias,       Person,  :alias  => :calias

  
  timestamps!
  
  # Validation
  validates_presence_of :first_name
  
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
couchrest_model-1.1.0.beta2 spec/fixtures/more/card.rb
couchrest_model-1.1.0.beta spec/fixtures/more/card.rb
couchrest_model-1.0.0 spec/fixtures/more/card.rb
couchrest_model-radiant-1.0.0 spec/fixtures/more/card.rb
couchrest_model-1.0.0.beta8 spec/fixtures/more/card.rb
couchrest_model_thought-1.0.0.beta9 spec/fixtures/more/card.rb
couchrest_model_thought-1.0.0.beta8 spec/fixtures/more/card.rb
couchrest_model-1.0.0.beta7 spec/fixtures/more/card.rb