lib/couchrest/model/designs/design_mapper.rb in couchrest_model-2.0.3 vs lib/couchrest/model/designs/design_mapper.rb in couchrest_model-2.0.4

- old
+ new

@@ -47,9 +47,14 @@ # See the CouchDB API for more information on how to use this. def filter(name, function) design_doc.create_filter(name, function) end + # Define a new view re-usable lib for shared functions. + def view_lib(name, function) + design_doc.create_view_lib(name, function) + end + # Convenience wrapper to access model's type key option. def model_type_key model.model_type_key end