Module: CouchCloner::CouchVisible

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

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

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

  base.couch_view :by_clone_id_and_start_time do
    map CouchCloner::ByCloneIdAndStartTime do
      conditions CouchCloner::Conditions::Shown, CouchCloner::Conditions::Hidden
    end
  end 
end