Sha256: e3826edc4ae73cef3139420ebce26e77e794c5361352f9d427ce3a3ef10a571f

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

# frozen_string_literal: true

module ActiveFields
  class Engine < ::Rails::Engine
    isolate_namespace ActiveFields

    config.eager_load_namespaces << ActiveFields

    # Disable models reloading to avoid STI issues.
    # Reloading can prevent subclasses from recognizing the base class.
    config.autoload_once_paths = %W[#{root}/app/models #{root}/app/models/concerns]

    initializer "active_fields.active_record" do
      ActiveSupport.on_load(:active_record) do
        include HasActiveFields
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_fields-1.1.0 lib/active_fields/engine.rb