lib/simple_navigation.rb in simple-navigation-2.5.3 vs lib/simple_navigation.rb in simple-navigation-2.5.4
- old
+ new
@@ -28,11 +28,11 @@
def default_config_file_path
File.join(SimpleNavigation.rails_root, 'config')
end
- def config_file?(navigation_context=nil)
+ def config_file?(navigation_context = :default)
File.exists?(config_file_name(navigation_context))
end
# Reads the config_file for the specified navigation_context and stores it for later evaluation.
def load_config(navigation_context = :default)
@@ -171,6 +171,6 @@
#
# 5) Make SampleProject public
#
# - allow :function navigation item to specify function
# - allow specification of link-options in item (currently options are passed to li-element)
-# - render_navigation: do not rescue from config-file not found error if no items are passed in directly
\ No newline at end of file
+# - render_navigation: do not rescue from config-file not found error if no items are passed in directly