Skip to content

Commit

Permalink
Allow overriding annotation service
Browse files Browse the repository at this point in the history
  • Loading branch information
khasinski committed Sep 24, 2023
1 parent d0b7a24 commit 7350520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/blazer/queries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def render_run
@linked_columns = @data_source.linked_columns

@markers = []
@annotations = Blazer::Annotations.new(@data_source.annotations).call(@result)
@annotations = Blazer.annotations.new(@data_source.annotations).call(@result)
@geojson = []
set_map_data if Blazer.maps?

Expand Down
1 change: 1 addition & 0 deletions lib/blazer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class << self
self.async = false
self.images = false
self.override_csp = false
self.annotations = Blazer::Annotations

VARIABLE_MESSAGE = "Variable cannot be used in this position"
TIMEOUT_MESSAGE = "Query timed out :("
Expand Down

0 comments on commit 7350520

Please sign in to comment.