Module: Qujo::Concerns::Common::ClassMethods
- Defined in:
- lib/qujo/concerns/common.rb
Instance Method Summary collapse
Instance Method Details
#errors? ⇒ Boolean
70 71 72 |
# File 'lib/qujo/concerns/common.rb', line 70 def errors? where(status: :error).count > 0 end |
#inherited(child) ⇒ Object
74 75 76 77 78 79 80 81 |
# File 'lib/qujo/concerns/common.rb', line 74 def inherited(child) child.instance_eval do def model_name ::Job.model_name end end super end |