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_sub_models-0.0.3.29 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.28 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.27 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.26 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.25 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.24 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.23 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.22 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.21 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.20 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.19 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.18 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.17 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.16 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.15 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.14 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.13 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.12 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.11 lib/subj_models/concerns/shared_scopes.rb
subj_sub_models-0.0.3.10 lib/subj_models/concerns/shared_scopes.rb