Skip to content

Commit

Permalink
Fix index_scope doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Rabotyaga committed Apr 17, 2021
1 parent 9c5dc55 commit 0ede1c2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/chewy/index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,18 +146,6 @@ def prefix
# ...
# end
#
# Type name might be passed in complicated cases:
#
# class CarsIndex < Chewy::Index
# index_scope Vehicle.cars.includes(:manufacturer), name: 'cars'
# ...
# end
#
# class MotorcyclesIndex < Chewy::Index
# index_scope Vehicle.motorcycles.includes(:manufacturer), name: 'motorcycles'
# ...
# end
#
# For plain objects you can completely omit this directive, unless you need to specify some options:
#
# class PlanesIndex < Chewy::Index
Expand Down

0 comments on commit 0ede1c2

Please sign in to comment.