Module: CouchRest::Model::Designs

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/couchrest/model/designs.rb,
lib/couchrest/model/designs/view.rb,
lib/couchrest/model/designs/migrations.rb,
lib/couchrest/model/designs/design_mapper.rb

Overview

A design block in CouchRest Model groups together the functionality of CouchDB’s design documents in a simple block definition.

class Person < CouchRest::Model::Base
  property :name
  timestamps!

  design do
    view :by_name
  end
end

Defined Under Namespace

Modules: ClassMethods, Migrations Classes: DesignMapper, View, ViewRow