You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: product.rb
    path of file: ./repos/brakeman/test/apps/rails3.1/app/models
    
    the code of the file until where you have to start completion: class Product < ActiveRecord::Base
  def test_find_order
    #Should warn, no escaping done for :order
    Product.find(:all, :order => params[:ord
    
  def test_conditional_in_options
    x = params[:x] == y ? "created_at ASC" : "created_at DESC"
    z = params[:y] == y ? "safe" : "totally safe"

    #Should not warn
    Product.all(:order => x, :having => z, :select => z, :from => z,
                :group => z)
  end