lib/bootstraps_bootstraps.rb in bootstraps_bootstraps-2.0.2 vs lib/bootstraps_bootstraps.rb in bootstraps_bootstraps-2.0.3

- old
+ new

@@ -1,7 +1,15 @@ require 'version.rb' +#require 'bootstraps_bootstraps/engine' if defined? ::Rails +require 'bootstraps_bootstraps/railtie.rb' + module BootstrapsBootstraps - load 'bootstraps_bootstraps/bootstrap_form_builder.rb' - load 'bootstraps_bootstraps/bootstrap_form_helper.rb' - load 'bootstraps_bootstraps/railtie.rb' + extend ::ActiveSupport::Autoload + + autoload :BootstrapFormBuilder + autoload :BootstrapFormHelper end + +::ActionView::Helpers.send(:load, 'bootstraps_bootstraps/bootstrap_form_builder.rb') +::ActionView::Helpers.send(:load, 'bootstraps_bootstraps/bootstrap_form_helper.rb') +::ActionView::Helpers.send(:include, BootstrapsBootstraps::BootstrapFormHelper)