lib/relaxdb/query.rb
# keys is not included in the standard param as it is significantly different from the others
keys is not included in the standard param as it is significantly different from the others
keys is not included in the standard param as it is significantly different from the others
def view_path
      uri = (@view_name =~ /^_/) ? @view_name : "_design/#{RelaxDB.dd}/_view/#{@view_name}"
      query = ""
      @@params.each do |param|
        val_set = instance_variable_get("@#{param}_set")
        if val_set
          val = instance_variable_get("@#{param}")
          val = val.to_json unless ["startkey_docid", "endkey_docid"].include?(param)
          query << "&#{param}=#{::CGI::escape(val)}" 
        end
      end
      uri << query.sub(/^&/, "?")
    end
def view_path uri = ( @view_name =~ / ^_ / ) ? @view_name : "_design/#{RelaxDB.dd}/_view/#{@view_name}" query = "" @@params . each do | param | val_set = instance_variable_get ( "@#{param}_set" ) if val_set val = instance_variable_get ( "@#{param}" ) val = val . to_json unless [ "startkey_docid" , "endkey_docid" ] . include? ( param ) query << "&#{param}=#{::CGI::escape(val)}" end end uri << query . sub ( / ^& / , "?" ) end
keys is not included in the standard param as it is significantly different from the others
keys is not included in the standard param as it is significantly different from the others