Module: DesignDocHelper
- Included in:
- GoodTimes
- Defined in:
- lib/good_times/design_doc_helper.rb
Overview
DesignDocHelper makes the following assumptions:
1) if you don't have a design doc created and you call views it will create that for you
2) when looking at your views, you will get the doc["views"] initially pulled from database, this means you can alter the design doc by hand after the class is loaded and DesignDocHelper won't know. Views are indexes created in the database. Any mismatch will resolve to what is in the db.
3) the views macro can only be called after a database has been specified (through use_database)
4) views specified in you class will overwrite the views in your couchdb
5) you will keep anything else already defined (lists, shows, etc)
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
10 11 12 |
# File 'lib/good_times/design_doc_helper.rb', line 10 def self.included(base) base.extend(ClassMethods) end |