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