Remove record_tag_helper
It was only used in one place, and could easily be replaced. Note we usually use HTML classes like `map-location` instead of `map_location`, but I've kept the underscore for compatibility with the previous version.
This commit is contained in:
committed by
voodoorai2000
parent
b35a729750
commit
f284d5c09e
@@ -26,10 +26,10 @@ module MapLocationsHelper
|
||||
|
||||
def render_map(map_location, parent_class, editable, remove_marker_label, investments_coordinates=nil)
|
||||
map_location = MapLocation.new if map_location.nil?
|
||||
map = content_tag_for :div,
|
||||
map_location,
|
||||
class: "map",
|
||||
data: prepare_map_settings(map_location, editable, parent_class, investments_coordinates)
|
||||
map = content_tag :div, "",
|
||||
id: dom_id(map_location),
|
||||
class: "map_location map",
|
||||
data: prepare_map_settings(map_location, editable, parent_class, investments_coordinates)
|
||||
map += map_location_remove_marker(map_location, remove_marker_label) if editable
|
||||
map
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user