# File lib/couch_potato/view/model_view_spec.rb, line 20 def map_function raise NotImplementedError.new("conditions in Erlang not implemented") if @options[:conditions] raise NotImplementedError.new("emit_value in Erlang not implemented") if @options[:emit_value] "fun({Doc}) ->\ncase proplists:get_value(<<\"\#{JSON.create_id}\">>, Doc) of\n<<\"\#{@klass.name}\">> ->\n\#{formatted_key},\nEmit(\#{composite_key_brackets emit_key}, 1);\n_ ->\nok\nend\nend.\n" end