Module: CouchCloner
- Defined in:
- lib/couch_cloner/clone.rb,
lib/couch_cloner/query.rb,
lib/couch_cloner/scheduling.rb,
lib/couch_cloner/couch_cloner.rb,
lib/couch_cloner/conditions/shown.rb,
lib/couch_cloner/conditions/hidden.rb,
lib/couch_cloner/conditions/published.rb,
lib/couch_cloner/conditions/unpublished.rb,
lib/couch_cloner/integration/couch_publish.rb,
lib/couch_cloner/integration/couch_visible.rb,
lib/couch_cloner/maps/by_clone_id_and_start_time.rb
Defined Under Namespace
Modules: Clone, Conditions, CouchPublish, CouchVisible, Query, Scheduling Classes: ByCloneIdAndStartTime
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/couch_cloner/couch_cloner.rb', line 2 def self.included(base) base.send :include, CouchView unless base.ancestors.include?(CouchView) base.send :include, CouchCloner::Clone base.send :include, CouchCloner::Scheduling base.send :include, CouchCloner::Query if defined?(::CouchPublish) && base.ancestors.include?(::CouchPublish) base.send :include, CouchCloner::CouchPublish end if defined?(::CouchVisible) && base.ancestors.include?(::CouchVisible) base.send :include, CouchCloner::CouchVisible end end |