Sha256: 1df99d4da7392112b9c4509d440adbbd731ef0dd8e10c8de0313a7cba5ca00b1

Contents?: true

Size: 235 Bytes

Versions: 22

Compression:

Stored size: 235 Bytes

Contents

module Ddr
  module HasDerivedImage
    extend ActiveSupport::Concern

    included do
      attribute :derived_image, Ddr::File.optional
    end

    def derived_image_file_path
      derived_image&.file&.disk_path
    end

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ddr-core-1.17.0 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.16.0 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.15.0 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.14.0 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.13.2 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.13.1 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.13.0 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.12.2 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.12.1 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.12.0 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.11.0 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.10.0 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.9.0 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.8.0 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.7.0 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.6.6 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.6.5 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.6.4 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.6.3 app/models/concerns/ddr/has_derived_image.rb
ddr-core-1.6.2 app/models/concerns/ddr/has_derived_image.rb