We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37a1196 commit eb868dfCopy full SHA for eb868df
lib/sunspot/rails/configuration.rb
@@ -115,10 +115,7 @@ def master_path
115
# Boolean:: bool
116
#
117
def has_master?
118
- unless defined?(@has_master)
119
- @has_master = !!user_configuration_from_key('master_solr')
120
- end
121
- @has_master
+ @has_master = !!user_configuration_from_key('master_solr')
122
end
123
124
spec/session_spec.rb
@@ -30,6 +30,7 @@
30
31
def with_configuration(options)
32
original_configuration = Sunspot::Rails.configuration
33
+ Sunspot::Rails.reset
34
Sunspot::Rails.configuration = Sunspot::Rails::Configuration.new
35
Sunspot::Rails.configuration.user_configuration = options
36
yield
0 commit comments