Sha256: b516c094be89f90da8860f63e46cc8738914ddeb2764d07a77f286ab93aa66fc

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

class Wco::Publisher
  include Mongoid::Document
  include Mongoid::Timestamps
  store_in collection: 'wco_daily_publishers'

  KIND_ARTICLE = 'article'
  KIND_IMAGE   = 'image'
  field :kind, type: :string

  belongs_to :to_site,      class_name: 'Wco::Site'
  belongs_to :from_gallery, class_name: 'Wco::Gallery'

  field :title_eval, type: :string ## "#{Time.now.strftime('%Y-%m-%d') Daily Tree}" with the quotes



end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ish_models-3.1.0.29 app/models/wco/publisher.rb