rails/init.rb in simple-navigation-1.1.1 vs rails/init.rb in simple-navigation-1.1.2
- old
+ new
@@ -1,3 +1,4 @@
-config_file_path = File.join(RAILS_ROOT, 'config', 'navigation.rb')
-SimpleNavigation.load_config(config_file_path) if File.exists?(config_file_path)
+default_config_file_path = File.join(RAILS_ROOT, 'config', 'navigation.rb')
+SimpleNavigation.config_file_path = default_config_file_path unless SimpleNavigation.config_file_path
+SimpleNavigation.load_config
ActionController::Base.send(:include, SimpleNavigation::ControllerMethods)
\ No newline at end of file