Class: Sunspot::Rails::SessionProxy

Inherits:
Object
  • Object
show all
Extended by:
MonitorMixin
Defined in:
lib/sunspot/rails/session_proxy.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSessionProxy

Returns a new instance of SessionProxy.



27
28
29
# File 'lib/sunspot/rails/session_proxy.rb', line 27

def initialize
  @configuration = Sunspot::Rails::Configuration.new
end

Class Method Details

.instanceObject



7
8
9
10
11
# File 'lib/sunspot/rails/session_proxy.rb', line 7

def instance
  synchronize do
    @instance ||= new
  end
end

.reset!Object



13
14
15
16
17
# File 'lib/sunspot/rails/session_proxy.rb', line 13

def reset!
  synchronize do
    @instance = nil
  end
end