Method: CouchModel::Base::Setup::ClassMethods#method_missing

Defined in:
lib/couch_model/base/setup.rb

#method_missing(method_name, *arguments, &block) ⇒ Object



45
46
47
48
# File 'lib/couch_model/base/setup.rb', line 45

def method_missing(method_name, *arguments, &block)
  view = find_view method_name
  view ? view.collection(*arguments) : super
end