Sha256: b4fba44daed525c98bc89f25f4397617a393e3f615460c770b716c63eca06638

Contents?: true

Size: 760 Bytes

Versions: 8

Compression:

Stored size: 760 Bytes

Contents

module Native
    module AppLib

        extend ActiveSupport::Concern

        included do
            scope :android, -> { where(platform: 'android') }
            scope :ios, -> { where(platform: 'ios') }
            scope :uwp, -> { where(platform: 'uwp') }
            scope :chrome, -> { where(platform: 'chrome') }
            scope :osx, -> { where(platform: 'osx') }
            scope :win32, -> { where(platform: 'win32') }
            scope :win64, -> { where(platform: 'win64') }
            scope :lin32, -> { where(platform: 'lin32') }
            scope :lin64, -> { where(platform: 'lin64') }
            scope :platforms, -> { group_by(&:platform) }
            scope :apps, -> { group_by(&:url) }
        end

    end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
native-2.1.4 app/models/concerns/native/app_lib.rb
native-2.1.3 app/models/concerns/native/app_lib.rb
native-2.1.2 app/models/concerns/native/app_lib.rb
native-2.1.1 app/models/concerns/native/app_lib.rb
native-2.1.0 app/models/concerns/native/app_lib.rb
native-2.0.1 app/models/concerns/native/app_lib.rb
native-2.0.0 app/models/concerns/native/app_lib.rb
native-1.0.0 app/models/concerns/native/app_lib.rb