Sha256: 456d473d608b8b117850b6abd13ec4d973277f8e3aba1c64ca261dca9f6df0f4

Contents?: true

Size: 630 Bytes

Versions: 1

Compression:

Stored size: 630 Bytes

Contents

# frozen_string_literal: true

module Archangel
  ##
  # Application configurations
  #
  class Config < Anyway::Config
    config_name :archangel

    attr_config allow_registration: false,
                asset_maximum_file_size: 2.megabytes,
                asset_extension_whitelist: %i[gif jpeg jpg png],
                auth_path: "account",
                backend_path: "backend",
                frontend_path: "",
                image_extension_whitelist: %i[gif jpeg jpg png],
                image_maximum_file_size: 2.megabytes

    def keys_in(keys)
      to_h.select { |key| keys.include?(key) }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.0.8 lib/archangel/config.rb