Sha256: 73c3f90aa42cb1ef53c553b764051b79f83ef1b225867f95491587ad1461f326

Contents?: true

Size: 459 Bytes

Versions: 10

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true
require 'rails/railtie'

module SimpleForm
  class Railtie < Rails::Railtie
    config.eager_load_namespaces << SimpleForm

    config.after_initialize do
      unless SimpleForm.configured?
        warn '[Simple Form] Simple Form is not configured in the application and will use the default values.' +
          ' Use `rails generate simple_form:install` to generate the Simple Form configuration.'
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
simple_form-5.2.0 lib/simple_form/railtie.rb
simple_form-5.1.0 lib/simple_form/railtie.rb
simple_form-5.0.3 lib/simple_form/railtie.rb
simple_form-5.0.2 lib/simple_form/railtie.rb
simple_form-5.0.1 lib/simple_form/railtie.rb
simple_form-5.0.0 lib/simple_form/railtie.rb
simple_form-4.1.0 lib/simple_form/railtie.rb
simple_form-4.0.1 lib/simple_form/railtie.rb
simple_form-4.0.0 lib/simple_form/railtie.rb
simple_form-3.5.1 lib/simple_form/railtie.rb