Skip to content

Commit

Permalink
Fix up Code Climate issues with Open Street Map code.
Browse files Browse the repository at this point in the history
  • Loading branch information
cillian committed May 28, 2020
1 parent 87427e4 commit 6c0ec4f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
7 changes: 5 additions & 2 deletions app/assets/stylesheets/darkswarm/map.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,18 @@
left: 54px;
width: 50%;
z-index: 1000;

.autocomplete-input,
.autocomplete-result-list {
border: 2px solid #888;
border: 2px solid $grey-500;

&:hover, &:active, &:focus {
border-color: $clr-brick;
}
}

.autocomplete-result-list {
border-top: 1px dotted #888;
border-top: 1px dotted $grey-500;
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions app/models/preference_sections/map_section.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module PreferenceSections
class MapSection
def name
Expand Down
26 changes: 16 additions & 10 deletions app/serializers/api/open_street_map_config_serializer.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
class Api::OpenStreetMapConfigSerializer < ActiveModel::Serializer
attributes :open_street_map_enabled, :open_street_map_provider_name, :open_street_map_provider_options
# frozen_string_literal: true

def open_street_map_enabled
ContentConfig.open_street_map_enabled
end
module Api
class OpenStreetMapConfigSerializer < ActiveModel::Serializer
attributes :open_street_map_enabled,
:open_street_map_provider_name,
:open_street_map_provider_options

def open_street_map_provider_name
ContentConfig.open_street_map_provider_name
end
def open_street_map_enabled
ContentConfig.open_street_map_enabled
end

def open_street_map_provider_name
ContentConfig.open_street_map_provider_name
end

def open_street_map_provider_options
ContentConfig.open_street_map_provider_options.to_json
def open_street_map_provider_options
ContentConfig.open_street_map_provider_options.to_json
end
end
end

0 comments on commit 6c0ec4f

Please sign in to comment.