app/helpers/alchemy/admin/navigation_helper.rb in alchemy_cms-3.1.3 vs app/helpers/alchemy/admin/navigation_helper.rb in alchemy_cms-3.2.0.beta
- old
+ new
@@ -163,10 +163,10 @@
{
controller: entry['controller'],
action: entry['action'],
only_path: true,
params: entry['params']
- }
+ }.delete_if { |_k, v| v.nil? }
end
# Retrieves the current Alchemy module from controller and index action.
#
def current_alchemy_module