lib/daylight/resource_proxy.rb
##
# Convert any object value filters to *_id keys
Convert any object value filters to *_id keys
Convert any object value filters to * _id keys
def identifize_filters(params)
      params = params.dup
      filters = params.find_all {|_, value| value.respond_to? :id }
      filters.each do |key, value|
        reflection = reflections[key.to_sym]
        params[reflection.foreign_key.to_sym] = params.delete(key) if reflection
      end
      params
    end
def identifize_filters ( params ) params = params . dup filters = params . find_all { | _ , value | value . respond_to? :id } filters . each do | key , value | reflection = reflections [ key . to_sym ] params [ reflection . foreign_key . to_sym ] = params . delete ( key ) if reflection end params end
Convert any object value filters to *_id keys
Convert any object value filters to * _id keys
params
<not_specific>