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.55.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.54.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.53.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.52.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.51.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.50.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.49.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.48.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.45.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.44.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.43.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.42.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.41.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.40.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.39.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.38.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.37.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.36.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.35.pre lib/cmor/core/backend/configuration.rb
cmor_core_backend-0.0.34.pre lib/cmor/core/backend/configuration.rb