rails/init.rb in simple-navigation-2.2.3 vs rails/init.rb in simple-navigation-2.4.0
- old
+ new
@@ -1,3 +1,5 @@
-default_config_file_path = File.join(RAILS_ROOT, 'config')
-SimpleNavigation.config_file_path = default_config_file_path unless SimpleNavigation.config_file_path
-ActionController::Base.send(:include, SimpleNavigation::ControllerMethods)
+if Rails::VERSION::MAJOR == 3
+ SimpleNavigation::Initializer::Rails3.run
+else
+ SimpleNavigation::Initializer::Rails2.run
+end
\ No newline at end of file