Skip to content

Commit

Permalink
IMPROVE: attempt to remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
merefield committed Jan 8, 2024
1 parent 30bcd23 commit fefb956
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
9 changes: 0 additions & 9 deletions lib/locations/geocode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@
class GeocoderError < StandardError; end

module ::Locations

REQUEST_PARTS = [
'street',
'neighbourhood',
'postalcode',
'city',
'state'
]

class Geocode
def self.set_config(opts = {})
provider = opts[:provider] || SiteSetting.location_geocoding_provider
Expand Down
10 changes: 9 additions & 1 deletion plugin.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
# name: discourse-locations
# about: Tools for handling locations in Discourse
# version: 6.6.1
# version: 6.6.2
# authors: Angus McLeod, Robert Barrow
# contact_emails: [email protected]
# url: https://github.com/angusmcleod/discourse-locations
Expand All @@ -10,6 +10,14 @@

module ::Locations
PLUGIN_NAME = "discourse-locations"

REQUEST_PARTS = [
'street',
'neighbourhood',
'postalcode',
'city',
'state'
]
end

require_relative "lib/locations/engine"
Expand Down

0 comments on commit fefb956

Please sign in to comment.