- 'app/models/issue_query.rb'
- 'config/initializers/10-patches.rb'
- 'lib/redmine/helpers/gantt.rb'
- - 'lib/redmine/menu_manager.rb'
# Cop supports --auto-correct.
Layout/ClosingHeredocIndentation:
def extract_node_details(node, project=nil)
item = node
- url = case item.url
- when Hash
- project.nil? ? item.url : {item.param => project}.merge(item.url)
- when Symbol
- if project
- send(item.url, project)
+ url =
+ case item.url
+ when Hash
+ project.nil? ? item.url : {item.param => project}.merge(item.url)
+ when Symbol
+ if project
+ send(item.url, project)
+ else
+ send(item.url)
+ end
else
- send(item.url)
+ item.url
end
- else
- item.url
- end
caption = item.caption(project)
return [caption, url, (current_menu_item == item.name)]
end