app/helpers/alchemy/admin/navigation_helper.rb in alchemy_cms-2.7.0 vs app/helpers/alchemy/admin/navigation_helper.rb in alchemy_cms-2.7.1
- old
+ new
@@ -86,16 +86,17 @@
# @param [Hash]
# A Alchemy module sub navigation definition
#
def url_for_module_sub_navigation(navigation)
alchemy_module = module_definition_for(navigation)
+ return if alchemy_module.nil?
route_from_engine_or_main_app(
alchemy_module['engine_name'],
url_options_for_navigation_entry(navigation)
)
end
- private
+ private
# Calls +url_for+ helper on engine if present or on host app.
#
# @param [String]
# A name of an engine