mirror of
https://github.com/heartcombo/simple_form.git
synced 2022-11-09 12:19:26 -05:00
14 lines
429 B
Ruby
14 lines
429 B
Ruby
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
|