# File lib/couchrest/model/designs/view.rb, line 518 def create_model_methods(design_doc, name, opts = {}) method = design_doc.method_name design_doc.model.instance_eval "def \#{name}(opts = {})\n\#{method}.view('\#{name}', opts)\nend\ndef find_\#{name}(*key)\n\#{name}.key(*key).first()\nend\ndef find_\#{name}!(*key)\nfind_\#{name}(*key) || raise(CouchRest::Model::DocumentNotFound)\nend\n", __FILE__, __LINE__ + 1 end