From ff7cd3eaa607a4ee5a253ea48796a1834f0f8cdd Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Mon, 27 Aug 2018 20:03:42 +0200 Subject: [PATCH] Wrap requires in SimpleNavigationBootstrap module --- lib/simple_navigation_bootstrap.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/simple_navigation_bootstrap.rb b/lib/simple_navigation_bootstrap.rb index 4e448b5..73a4e4e 100644 --- a/lib/simple_navigation_bootstrap.rb +++ b/lib/simple_navigation_bootstrap.rb @@ -2,14 +2,14 @@ require 'forwardable' require 'simple-navigation' -require 'simple_navigation_bootstrap/errors' -require 'simple_navigation_bootstrap/rendered_item' -require 'simple_navigation_bootstrap/bootstrap_base' -require 'simple_navigation_bootstrap/bootstrap2' -require 'simple_navigation_bootstrap/bootstrap3' -require 'simple_navigation_bootstrap/engine' if defined? Rails::Engine module SimpleNavigationBootstrap + require 'simple_navigation_bootstrap/errors' + require 'simple_navigation_bootstrap/rendered_item' + require 'simple_navigation_bootstrap/bootstrap_base' + require 'simple_navigation_bootstrap/bootstrap2' + require 'simple_navigation_bootstrap/bootstrap3' + require 'simple_navigation_bootstrap/engine' if defined? Rails::Engine end SimpleNavigation.register_renderer(bootstrap2: SimpleNavigationBootstrap::Bootstrap2)