Commit 946b4519 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Use .new_record? instead

parent d2afeb8d
- if controller.controller_path =~ /^groups/ && !@group.new_record?
- if controller.controller_path =~ /^groups/ && @group.persisted?
- label = 'This group'
- if controller.controller_path =~ /^projects/ && !@project.new_record?
- if controller.controller_path =~ /^projects/ && @project.persisted?
- label = 'This project'
.search.search-form{class: "#{'has-location-badge' if label.present?}"}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment