Welcome to mirror list, hosted at ThFree Co, Russian Federation.

object_storable.rb « concerns « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c13dddc0b88e8979ba436206d54ccc7f61690cab (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

module ObjectStorable
  extend ActiveSupport::Concern

  included do
    scope :with_files_stored_locally, -> { where(klass::STORE_COLUMN => ObjectStorage::Store::LOCAL) }
    scope :with_files_stored_remotely, -> { where(klass::STORE_COLUMN => ObjectStorage::Store::REMOTE) }
  end
end