Sha256: 5503aa471fc7002af318808eeeed1840c58d678915384ece4760e82f8efa62d8

Contents?: true

Size: 195 Bytes

Versions: 14

Compression:

Stored size: 195 Bytes

Contents

module Sufia
  module GenericFile
    module Featured
      extend ActiveSupport::Concern

      def featured?
        FeaturedWork.where(generic_file_id: id).exists?
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
sufia-models-6.7.0 app/models/concerns/sufia/generic_file/featured.rb
sufia-models-6.6.1 app/models/concerns/sufia/generic_file/featured.rb
sufia-models-6.6.0 app/models/concerns/sufia/generic_file/featured.rb
sufia-models-6.5.0 app/models/concerns/sufia/generic_file/featured.rb
sufia-models-6.4.0 app/models/concerns/sufia/generic_file/featured.rb
sufia-models-6.3.0 app/models/concerns/sufia/generic_file/featured.rb
sufia-models-6.2.0 app/models/concerns/sufia/generic_file/featured.rb
sufia-models-6.1.0 app/models/concerns/sufia/generic_file/featured.rb
sufia-models-6.0.0 app/models/concerns/sufia/generic_file/featured.rb
sufia-6.0.0 sufia-models/app/models/concerns/sufia/generic_file/featured.rb
sufia-6.0.0.rc4 sufia-models/app/models/concerns/sufia/generic_file/featured.rb
sufia-models-6.0.0.rc4 app/models/concerns/sufia/generic_file/featured.rb
sufia-6.0.0.rc3 sufia-models/app/models/concerns/sufia/generic_file/featured.rb
sufia-models-6.0.0.rc3 app/models/concerns/sufia/generic_file/featured.rb