vendor/plugins/searchgasm-1.0.2/lib/searchgasm/search/base.rb
def inspect
        current_find_options = {}
        (::ActiveRecord::Base.valid_find_options - [:conditions]).collect do |option|
          value = send(option)
          next if value.nil?
          current_find_options[option] = value
        end
        conditions_hash = conditions.conditions
        current_find_options[:conditions] = conditions_hash if !conditions_hash.blank?
        "#<#{klass}Search #{current_find_options.inspect}>"
      end
# Makes using searchgasm in the console less annoying and keeps the output meaningful and useful
Makes using searchgasm in the console less annoying and keeps the output meaningful and useful
Makes using searchgasm in the console less annoying and keeps the output meaningful and useful
def inspect
        current_find_options = {}
        (::ActiveRecord::Base.valid_find_options - [:conditions]).collect do |option|
          value = send(option)
          next if value.nil?
          current_find_options[option] = value
        end
        conditions_hash = conditions.conditions
        current_find_options[:conditions] = conditions_hash if !conditions_hash.blank?
        "#<#{klass}Search #{current_find_options.inspect}>"
      end
def inspect current_find_options = { } ( :: ActiveRecord :: Base . valid_find_options - [ :conditions ] ) . collect do | option | value = send ( option ) next if value . nil? current_find_options [ option ] = value end conditions_hash = conditions . conditions current_find_options [ :conditions ] = conditions_hash if ! conditions_hash . blank? "#<#{klass}Search #{current_find_options.inspect}>" end
Makes using searchgasm in the console less annoying and keeps the output meaningful and useful
Makes using searchgasm in the console less annoying and keeps the output meaningful and useful