Sha256: 2b667f02c3f342f566c68f574fe3497c39deb43d158eae43e31f6ed2463dc228

Contents?: true

Size: 429 Bytes

Versions: 12

Compression:

Stored size: 429 Bytes

Contents

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

12 entries across 12 versions & 3 rubygems

Version Path
simple_form-3.5.0 lib/simple_form/railtie.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/simple_form-3.4.0/lib/simple_form/railtie.rb
simple_form-3.4.0 lib/simple_form/railtie.rb
simple_form-3.3.1 lib/simple_form/railtie.rb
simple_form-3.3.0 lib/simple_form/railtie.rb
simple_form-3.2.1 lib/simple_form/railtie.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/simple_form-3.2.0/lib/simple_form/railtie.rb
simple_form-3.2.0 lib/simple_form/railtie.rb
simple_form-3.1.1 lib/simple_form/railtie.rb
simple_form-3.1.0 lib/simple_form/railtie.rb
simple_form-3.1.0.rc2 lib/simple_form/railtie.rb
simple_form-3.1.0.rc1 lib/simple_form/railtie.rb