Skip to content

Commit

Permalink
Ensure all models in engines are loaded too.
Browse files Browse the repository at this point in the history
  • Loading branch information
njakobsen committed May 20, 2014
1 parent 63cb8ef commit 66410a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sunspot_rails/lib/sunspot/rails/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

# Load all the application's models. Models which invoke 'searchable' will register themselves
# in Sunspot.searchable.
Rails.application.eager_load!
Rails.application.config.eager_load_namespaces.each(&:eager_load!)

if args[:models].present?
# Choose a specific subset of models, if requested
Expand Down

0 comments on commit 66410a3

Please sign in to comment.