Methods
Class Public methods
new(app)
Link
Source: show
# File rhino/rhino/lib/rhino/sieve/search.rb 6 def initialize(app) 7 @app = app 8 end
Instance Public methods
resolve(scope, params)
Link
search='test'
Source: show
# File rhino/rhino/lib/rhino/sieve/search.rb 11 def resolve(scope, params) 12 return @app.resolve(scope, params) unless scope.respond_to?(:search_text_fields) && params[:search].present? 13 14 # Re-order so that rank isn't the default 15 # FIXME: Should look at the order param for 'rank' 16 @app.resolve(scope.search_text_fields(params[:search]).reorder(''), params) 17 end