Sha256: 5066ac279154e265b734adbdbdedabd721a8410f4efa49dbcf9f201d744f50c8

Contents?: true

Size: 675 Bytes

Versions: 4

Compression:

Stored size: 675 Bytes

Contents

# frozen_string_literal: true

require "active_support/configurable"
require "active_support/core_ext/numeric"

module Koi
  class Config
    include ActiveSupport::Configurable

    config_accessor(:resource_name_candidates) { %i[title name] }

    config_accessor(:admin_stylesheet) { "koi/admin" }

    config_accessor(:document_mime_types) do
      %w[image/png image/gif image/jpeg image/webp application/pdf audio/*].freeze
    end

    config_accessor(:document_size_limit) { 10.megabytes }

    config_accessor(:image_mime_types) do
      %w[image/png image/gif image/jpeg image/webp].freeze
    end

    config_accessor(:image_size_limit) { 10.megabytes }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
katalyst-koi-4.8.0 lib/koi/config.rb
katalyst-koi-4.7.3 lib/koi/config.rb
katalyst-koi-4.6.0 lib/koi/config.rb
katalyst-koi-4.5.9 lib/koi/config.rb