Module: Recliner::Views

Extended by:
ActiveSupport::Concern
Defined in:
lib/recliner/views.rb

Overview

Example views

view :by_title, :order => :title
view :published, :conditions => { :published => true }
view :custom_map, :map => "emit(null, doc)"          # function is optional
view :custom_reduce, :map => "function(doc) { emit(doc.tag, doc); }",
                   :reduce => "function(keys, values) { return sum(values); }"

Defined Under Namespace

Modules: ClassMethods