Module: CouchCloner::CouchPublish

Defined in:
lib/couch_cloner/integration/couch_publish.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/couch_cloner/integration/couch_publish.rb', line 3

def self.included(base)
  base.map :clone_id do
    conditions CouchCloner::Conditions::Published, CouchCloner::Conditions::Unpublished
  end

  base.couch_view :by_clone_id_and_start_time do
    map CouchCloner::ByCloneIdAndStartTime
    conditions CouchCloner::Conditions::Published, CouchCloner::Conditions::Unpublished
  end
end