Sha256: 8eee2d30b494e28cdc799f205ad3183ba780a4abc8b9384ac9f637ecdfa111a2

Contents?: true

Size: 308 Bytes

Versions: 8

Compression:

Stored size: 308 Bytes

Contents

module CurationConcerns
  module IndexesThumbnails
    extend ActiveSupport::Concern

    included do
      class_attribute :thumbnail_path_service
      self.thumbnail_path_service = ThumbnailPathService
    end

    def thumbnail_path
      self.class.thumbnail_path_service.call(object)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
curation_concerns-models-0.9.0 app/services/curation_concerns/indexes_thumbnails.rb
curation_concerns-models-0.8.0 app/services/curation_concerns/indexes_thumbnails.rb
curation_concerns-models-0.7.0 app/services/curation_concerns/indexes_thumbnails.rb
curation_concerns-models-0.6.0 app/services/curation_concerns/indexes_thumbnails.rb
curation_concerns-models-0.5.0 app/services/curation_concerns/indexes_thumbnails.rb
curation_concerns-models-0.4.0 app/services/curation_concerns/indexes_thumbnails.rb
curation_concerns-models-0.3.0 app/services/curation_concerns/indexes_thumbnails.rb
curation_concerns-models-0.2.0 app/services/curation_concerns/indexes_thumbnails.rb