Class: Mihari::Jobs::SearchJob
- Inherits:
-
Object
- Object
- Mihari::Jobs::SearchJob
- Includes:
- Concerns::DatabaseConnectable, Sidekiq::Job
- Defined in:
- lib/mihari/sidekiq/jobs.rb
Instance Method Summary collapse
Methods included from Concerns::DatabaseConnectable
Instance Method Details
#perform(path_or_id) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/mihari/sidekiq/jobs.rb', line 14 def perform(path_or_id) with_db_connection do rule = Mihari::Rule.from_model(Mihari::Models::Rule.find(path_or_id)) rule.call end end |