Skip to content

Commit

Permalink
fix: don't eager load models from all engines
Browse files Browse the repository at this point in the history
  • Loading branch information
bibendi committed Sep 29, 2015
1 parent ad63029 commit 3ec988b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/sphinx/integration/extensions/thinking_sphinx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module Sphinx::Integration::Extensions::ThinkingSphinx
autoload :Configuration, 'sphinx/integration/extensions/thinking_sphinx/configuration'
autoload :LastIndexingTime, 'sphinx/integration/extensions/thinking_sphinx/last_indexing_time'
autoload :Statements, 'sphinx/integration/extensions/thinking_sphinx/statements'
autoload :Context, 'sphinx/integration/extensions/thinking_sphinx/context'

extend ActiveSupport::Concern

Expand Down
17 changes: 17 additions & 0 deletions lib/sphinx/integration/extensions/thinking_sphinx/context.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module Sphinx
module Integration
module Extensions
module ThinkingSphinx
module Context
extend ActiveSupport::Concern

included do
def load_models
# nope
end
end
end
end
end
end
end
1 change: 1 addition & 0 deletions lib/sphinx/integration/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Railtie < Rails::Railtie
Riddle::Configuration::DistributedIndex,
Riddle::Client,
ThinkingSphinx,
ThinkingSphinx::Context,
ThinkingSphinx::Configuration,
ThinkingSphinx::Attribute,
ThinkingSphinx::Source,
Expand Down

0 comments on commit 3ec988b

Please sign in to comment.