Sha256: 4d235a43a1b823b54d780b6cdb39937b3b5e219a4147adbeb72ae9430afa4fc7

Contents?: true

Size: 463 Bytes

Versions: 4

Compression:

Stored size: 463 Bytes

Contents

class NativeGap::AppLibrary < ApplicationRecord

    self.table_name = 'native_gap_apps'

    belongs_to :owner, polymorphic: true, optional: true

    scope :android, -> { where(platform: 'android') }
    scope :ios, -> { where(platform: 'ios') }
    scope :windows, -> { where(platform: 'windows') }
    scope :chrome, -> { where(platform: 'chrome') }
    scope :platforms, -> { group_by(&:platform) }
    scope :apps, -> { group_by(&:url) }

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nativegap-3.0.3 app/models/native_gap/app_library.rb
nativegap-3.0.2 app/models/native_gap/app_library.rb
nativegap-3.0.1 app/models/native_gap/app_library.rb
nativegap-3.0.0 app/models/native_gap/app_library.rb