module OscMacheteRails::Statusable::ClassMethods
class methods to extend a model with
Public Instance Methods
active()
click to toggle source
scope to get all of the jobs that are in an active state or have a pbsid
# File lib/osc_machete_rails/statusable.rb, line 86 def active # FIXME: what about OR i.e. where # # status in active_values OR (pbsid != null and status == null) # # will need to use STRING for the sql instead of this. where(status: OSC::Machete::Status.active_values.map(&:char)) end