Sha256: e16437e2e44ce1439de0199694880688b68267dd8999be5704bd16c8a171ecfe

Contents?: true

Size: 804 Bytes

Versions: 3

Compression:

Stored size: 804 Bytes

Contents

module HumanAttributes
  class Engine < ::Rails::Engine
    isolate_namespace HumanAttributes

    config.generators do |g|
      g.test_framework :rspec, fixture: false
      g.fixture_replacement :factory_bot, dir: "spec/factories"
    end

    initializer "initialize" do
      require_relative "./config"
      require_relative "./errors"
      require_relative "./formatters_builder"
      require_relative "./formatters/base"
      require_relative "./formatters/numeric"
      require_relative "./formatters/date"
      require_relative "./formatters/datetime"
      require_relative "./formatters/boolean"
      require_relative "./formatters/enumerize"
      require_relative "./formatters/custom"
      require_relative "./method_builder"
      require_relative "./extension"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
human_attributes-0.7.0 lib/human_attributes/engine.rb
human_attributes-0.6.0 lib/human_attributes/engine.rb
human_attributes-0.5.0 lib/human_attributes/engine.rb