vendor/plugins/searchgasm-1.0.2/lib/searchgasm/search/base.rb
# Sanitizes everything down into options ActiveRecord::Base.find can understand
Sanitizes everything down into options ActiveRecord::Base.find can understand
Sanitizes everything down into options ActiveRecord :: Base . find can understand
def sanitize(for_method = nil)
        find_options = {}
        ::ActiveRecord::Base.valid_find_options.each do |find_option|
          value = send(find_option)
          next if value.blank? || (for_method == :count && [:limit, :offset].include?(find_option))
          find_options[find_option] = value
        end
        find_options
      end
def sanitize ( for_method = nil ) find_options = { } :: ActiveRecord :: Base . valid_find_options . each do | find_option | value = send ( find_option ) next if value . blank? || ( for_method == :count && [ :limit , :offset ] . include? ( find_option ) ) find_options [ find_option ] = value end find_options end
Sanitizes everything down into options ActiveRecord::Base.find can understand
Sanitizes everything down into options ActiveRecord :: Base . find can understand
for_method