Sha256: 850963a1c8da47792958430759bbebb3be63c55f103b60c36c0fb0d054aec941

Contents?: true

Size: 478 Bytes

Versions: 1

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true

require 'active_model'
require 'ostruct'

module FileValidators
  module Utils
    extend ActiveSupport::Autoload

    autoload :ContentTypeDetector
    autoload :MediaTypeSpoofDetector
  end
end

Dir[File.dirname(__FILE__) + '/file_validators/validators/*.rb'].each { |file| require file }

locale_path = Dir.glob(File.dirname(__FILE__) + '/file_validators/locale/*.yml')
I18n.load_path += locale_path unless I18n.load_path.include?(locale_path)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
file_validators-3.0.0.beta1 lib/file_validators.rb