Class: ActiveKit::Search::Manager
- Inherits:
-
Object
- Object
- ActiveKit::Search::Manager
- Defined in:
- lib/active_kit/search/manager.rb
Instance Method Summary collapse
- #clear ⇒ Object
- #drop ⇒ Object
-
#initialize(given_class:, given_describer:) ⇒ Manager
constructor
A new instance of Manager.
- #reload ⇒ Object
Constructor Details
#initialize(given_class:, given_describer:) ⇒ Manager
Returns a new instance of Manager.
4 5 6 7 8 9 |
# File 'lib/active_kit/search/manager.rb', line 4 def initialize(given_class:, given_describer:) @given_class = given_class @given_describer = given_describer Rails.application.eager_load! end |
Instance Method Details
#clear ⇒ Object
15 16 17 |
# File 'lib/active_kit/search/manager.rb', line 15 def clear task(name: :clear, log_name: "Clearing") end |
#drop ⇒ Object
19 20 21 |
# File 'lib/active_kit/search/manager.rb', line 19 def drop task(name: :drop, log_name: "Dropping") end |
#reload ⇒ Object
11 12 13 |
# File 'lib/active_kit/search/manager.rb', line 11 def reload task(name: :reload, log_name: "Reloading") end |