Method: Searchgasm::Search::Base#inspect
- Defined in:
- lib/searchgasm/search/base.rb
#inspect ⇒ Object
Makes using searchgasm in the console less annoying and keeps the output meaningful and useful
70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/searchgasm/search/base.rb', line 70 def inspect = {} (AR_OPTIONS - [:conditions]).each do |option| value = send(option) next if value.nil? [option] = value end conditions_value = conditions.conditions [:conditions] = conditions_value unless conditions_value.blank? [:scope] = scope unless scope.blank? "#<#{klass}Search #{.inspect}>" end |