Class: FullSearch::BackfillJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- FullSearch::BackfillJob
- Defined in:
- lib/full_search/backfill_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(model_name) ⇒ Object
9 10 11 12 |
# File 'lib/full_search/backfill_job.rb', line 9 def perform(model_name) model = model_name.to_s.constantize FullSearch::Index.rebuild!(model) end |