Sha256: 123def4c4ab84257efeb78f372094ee9d691ea61cfa7d59fe949c2bd88fc8e50

Contents?: true

Size: 490 Bytes

Versions: 2

Compression:

Stored size: 490 Bytes

Contents

module Distribuo
  class App < ApplicationRecord
    has_one_attached :icon

    belongs_to :mobiliable, polymorphic: true, optional: true
    has_many :releases

    scope :administrable, -> { all }

    OPERATING_SYSTEMS = [
      %w[iOS ios],
      %w[Android android],
      %w[Windows windows],
      %w[MacOS macos],
      %w[tvOS tvos]
    ].freeze

    RELEASE_TYPES = %w[alpha beta enterprise production store].freeze

    def latest_release
      releases.first
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
distribuo-0.1.16 app/models/distribuo/app.rb
distribuo-0.1.8 app/models/distribuo/app.rb