Sha256: 7a8e3526f442853dda8420bf54032e35585d04fdccd15a57f69bb2e3c27ad982

Contents?: true

Size: 554 Bytes

Versions: 46

Compression:

Stored size: 554 Bytes

Contents

require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/module/attribute_accessors'

module Cmor
  module Core
    module Backend
      module Configuration
        def configure
          yield self
        end

        mattr_accessor(:image_variant_options) {
          {
            gallery: { resize: "640x480" },
            table:   { resize: "160x120" }
          }
        }

        def self.image_variant_options_for(identifier)
          @@image_variant_options[identifier]
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
cmor_core_backend-0.0.11.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.10.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.9.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.8.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.7.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.6.pre lib/cmor/core/backend/configuration.rb