Remove editable parameter in render_map
The calls to `render_map` are confusing since there are so many parameters. We can assume that the map is editable if we pass the remove marker label.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<%= tag.div(id: dom_id(map_location), class: "map_location map", data: data) %>
|
||||
|
||||
<% if editable %>
|
||||
<% if editable? %>
|
||||
<%= remove_marker %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user