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
|