Sha256: 0ea95e55df82ba4a3102635ac9f54a8d6317629c5a868c304c468682cf5ace75
Contents?: true
Size: 1.12 KB
Versions: 4
Compression:
Stored size: 1.12 KB
Contents
module Sunspot module Rails class StubSessionProxy attr_reader :original_session def initialize(original_session) @original_session = original_session end def index(*objects) end def index!(*objects) end def remove(*objects) end def remove!(*objects) end def remove_by_id(clazz, id) end def remove_by_id!(clazz, id) end def remove_all(clazz = nil) end def remove_all!(clazz = nil) end def dirty? false end def delete_dirty? false end def commit_if_dirty end def commit_if_delete_dirty end def commit end def search(*types) Search.new end def new_search(*types) Search.new end class Search def results [] end def hits(options = {}) [] end def total 0 end def facet(name) end def dynamic_facet(name) end def execute end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems