lib/simple_navigation/configuration.rb in andi-simple-navigation-1.3.1 vs lib/simple_navigation/configuration.rb in andi-simple-navigation-1.4.0

- old
+ new

@@ -12,12 +12,12 @@ attr_accessor :autogenerate_item_ids attr_reader :primary_navigation class << self - # Evals the config_file inside the specified context (usually a controller or view) - def eval_config(context) - context.instance_eval(SimpleNavigation.config_file) + # Evals the config_file for the given navigation_context inside the specified context (usually a controller or view) + def eval_config(context, navigation_context = :default) + context.instance_eval(SimpleNavigation.config_files[navigation_context]) SimpleNavigation.controller = extract_controller_from context end # Starts processing the configuration def run(&block) \ No newline at end of file