-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable map to point towards fingerprinted assets
- Loading branch information
Julien Jet
committed
May 3, 2021
1 parent
f04ff0e
commit c257770
Showing
4 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
class MapMarkersDecorator < Draper::CollectionDecorator | ||
|
||
def self.public_composter_marker | ||
'public_composter_marker.png' | ||
end | ||
|
||
def self.private_composter_marker | ||
'private_composter_marker.png' | ||
end | ||
|
||
def to_map_marker_json | ||
to_json(only: [:id, :latitude, :longitude], methods: [:map_marker_display, :icon_url]) | ||
to_json(only: [:id, :latitude, :longitude, :public], methods: [:map_marker_display]) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters