Sha256: aa0c91eadb51becbc4d21d9cd81b77a4ff18a0da2ee0de6b09e35d888a3d6b0e

Contents?: true

Size: 234 Bytes

Versions: 64

Compression:

Stored size: 234 Bytes

Contents

module SubjModels

  module SharedScopes

    extend ActiveSupport::Concern

    included do
      scope :with_photos, -> {
        joins(:document_file).where{{:document_file => {file_data.not_eq => nil}}}
      }
    end

  end

end

Version data entries

64 entries across 64 versions & 2 rubygems

Version Path
subj_models-0.3.1 lib/subj_models/concerns/shared_scopes.rb
subj_models-0.3 lib/subj_models/concerns/shared_scopes.rb
subj_models-0.2.5 lib/subj_models/concerns/shared_scopes.rb
subj_models-0.2.4 lib/subj_models/concerns/shared_scopes.rb