Module: Mincer::Processors::PgSearch::Options::ClassMethods

Defined in:
lib/mincer/processors/pg_search/processor.rb

Instance Method Summary collapse

Instance Method Details

#pg_search(params, options = {}) ⇒ Object



112
113
114
115
116
117
118
119
120
121
# File 'lib/mincer/processors/pg_search/processor.rb', line 112

def pg_search(params, options = {})
  class_eval <<-OPTIONS, __FILE__, __LINE__
  def pg_search_params
    @pg_search_params ||= #{params.inspect}
      end
  def pg_search_options
    @pg_search_options ||= #{options.inspect}
      end
  OPTIONS
end

#skip_pg_search!Object



104
105
106
# File 'lib/mincer/processors/pg_search/processor.rb', line 104

def skip_pg_search!
  active_processors.delete(Mincer::Processors::PgSearch::Processor)
end

#skip_search!Object



108
109
110
# File 'lib/mincer/processors/pg_search/processor.rb', line 108

def skip_search!
  skip_pg_search!
end