My couchrest_model class has a design section which defines a filter, but they never appear.
class MyDoc < CouchRest::Model::Base
property :my_key, String
design do
filter 'my_filter', "function(doc) {return (doc['my_key'] == 'value');}"
end
end
If I require the file that contains this in IRB, even if I create a few documents, the filter is never written. What do I need to call to do this?
Thanks.
I’m not sure couchrest_model supports filters. You could try saving the filter directly with couchrest: