Sha256: 46ebd1a3aa51ed415ff0a999b9fb10fc561ebfd3d8ecd9cdb278767f66913543
Contents?: true
Size: 749 Bytes
Versions: 10
Compression:
Stored size: 749 Bytes
Contents
module EffectiveFormInputs class Engine < ::Rails::Engine engine_name 'effective_form_inputs' config.autoload_paths += Dir["#{config.root}/app/models/**/"] initializer 'effective_form_inputs.action_view' do |app| Rails.application.config.to_prepare do ActiveSupport.on_load :action_view do ActionView::Helpers::FormBuilder.send(:include, Effective::FormBuilderInputs) end end end initializer 'effective_form_inputs.check_for_effective_bootstrap' do |app| Rails.application.config.to_prepare do if defined?(EffectiveBootstrap) raise 'effective_form_inputs and effective_bootstrap cannot be run alongside eachother. Sorry.' end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems