Module: RushJobMongoid::FilterHelper
- Included in:
- ApplicationHelper
- Defined in:
- app/helpers/rush_job_mongoid/filter_helper.rb
Instance Method Summary collapse
Instance Method Details
#filter_param_query ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/helpers/rush_job_mongoid/filter_helper.rb', line 3 def filter_param_query { doc_id: params[:doc_id], priority: params[:priority], attempts: params[:attempts], job_class: params[:job_class], arguments: params[:arguments], locked_by: params[:locked_by], last_error: params[:last_error], queue: params[:queue] } end |
#filter_param_query_empty? ⇒ Boolean
16 17 18 |
# File 'app/helpers/rush_job_mongoid/filter_helper.rb', line 16 def filter_param_query_empty? filter_param_query.values.join.empty? end |