Skip to content

Instantly share code, notes, and snippets.

@Serabe
Created June 4, 2009 12:28
Show Gist options
  • Select an option

  • Save Serabe/123589 to your computer and use it in GitHub Desktop.

Select an option

Save Serabe/123589 to your computer and use it in GitHub Desktop.
selection += select_options.delete_if {|k,v| v.blank?}.map do |k,v|
k + '=' + ( ([:integer,:float].include? type_pool.column_for_attribute(k).type) ? v : "'"+v+"'")
end.join(' AND ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment