lib/roaster/query.rb
# Target represents the resource(s) scope on which is executed the query
Target represents the resource(s) scope on which is executed the query
Target represents the resource ( s ) scope on which is executed the query
def fields_from_params(params, mapping)
      return {} if params[:fields].blank?
      if params[:fields].class == Hash
        Hash[params[:fields].collect do |resource_name, fieldset|
            [resource_name.downcase.to_sym, parse_fieldset(fieldset)]
          end
        ]
      else
        {@target.resource_name => parse_fieldset(params[:fields])}
      end
    end
def fields_from_params ( params , mapping ) return { } if params [ :fields ] . blank? if params [ :fields ] . class == Hash Hash [ params [ :fields ] . collect do | resource_name , fieldset | [ resource_name . downcase . to_sym , parse_fieldset ( fieldset ) ] end ] else { @target . resource_name => parse_fieldset ( params [ :fields ] ) } end end
Target represents the resource(s) scope on which is executed the query
Target represents the resource ( s ) scope on which is executed the query
params
<not_specific>
mapping
<not_specific>