Sha256: 2aa24971f8f3efaba1e6363868cea9eb059de5be0e950fc305395656440d7cd4

Contents?: true

Size: 426 Bytes

Versions: 4

Compression:

Stored size: 426 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
  property :fg_color,         :default   => '#000'

  timestamps!

  # Validation
  validates_presence_of :first_name
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
couchrest_model-1.1.0.rc1 spec/fixtures/more/card.rb
couchrest_model-1.1.0.beta5 spec/fixtures/more/card.rb
couchrest_model-1.1.0.beta4 spec/fixtures/more/card.rb
couchrest_model-1.1.0.beta3 spec/fixtures/more/card.rb