Sha256: 5913b79c02b84e4705f9dbfc34d540ff3144a4b54a3924c4643870611530bc87

Contents?: true

Size: 819 Bytes

Versions: 26

Compression:

Stored size: 819 Bytes

Contents

##
## 2023-09-13 _vp_ I don't know if it's even used.
##
class Wco::OfficeAction
  include Mongoid::Document
  include Mongoid::Timestamps
  store_in collection: 'office_actions'

  field     :slug, type: :string
  validates :slug, uniqueness: true, allow_nil: true

  field :descr, type: :string ## optional


  STATE_ACTIVE   = 'active'
  STATE_INACTIVE = 'inactive'
  STATES         = [ STATE_ACTIVE, STATE_INACTIVE ]
  field :state, type: :string
  scope :active, ->{ where( state: STATE_ACTIVE ) }


  has_many :ties,      class_name: '::Office::ActionTie', inverse_of: :office_action
  has_many :prev_ties, class_name: '::Office::ActionTie', inverse_of: :next_office_action
  accepts_nested_attributes_for :ties

  field :action_exe, type: :string

  field :perform_at, type: :time

end
OAct = Wco::OfficeAction

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
wco_models-3.1.0.37 app/models/wco/office_action.rb
wco_models-3.1.0.36 app/models/wco/office_action.rb
wco_models-3.1.0.35 app/models/wco/office_action.rb
wco_models-3.1.0.34 app/models/wco/office_action.rb
wco_models-3.1.0.33 app/models/wco/office_action.rb
wco_models-3.1.0.32 app/models/wco/office_action.rb
wco_models-3.1.0.31 app/models/wco/office_action.rb
ish_models-3.1.0.29 app/models/wco/office_action.rb
ish_models-3.1.0.28 app/models/wco/office_action.rb
ish_models-3.1.0.27 app/models/wco/office_action.rb
ish_models-3.1.0.26 app/models/wco/office_action.rb
ish_models-3.1.0.25 app/models/wco/office_action.rb
ish_models-3.1.0.24 app/models/wco/office_action.rb
ish_models-3.1.0.23 app/models/wco/office_action.rb
ish_models-3.1.0.22 app/models/wco/office_action.rb
ish_models-3.1.0.21 app/models/wco/office_action.rb
ish_models-3.1.0.20 app/models/wco/office_action.rb
ish_models-3.1.0.19 app/models/wco/office_action.rb
ish_models-3.1.0.18 app/models/wco/office_action.rb
ish_models-3.1.0.17 app/models/wco/office_action.rb