my_society-map_it 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/my_society/map_it/version.rb +1 -1
- data/lib/my_society/map_it.rb +3 -1
- metadata +1 -1
data/lib/my_society/map_it.rb
CHANGED
|
@@ -19,7 +19,7 @@ module MySociety
|
|
|
19
19
|
|
|
20
20
|
module LocalAuthorityFinder
|
|
21
21
|
LOCAL_AUTHORITY_TYPE_CODES = %w(
|
|
22
|
-
|
|
22
|
+
DIS MTD UTA LBO CTY LGD COI
|
|
23
23
|
).map { |c| c.freeze }.freeze
|
|
24
24
|
|
|
25
25
|
def local_authority
|
|
@@ -29,6 +29,8 @@ module MySociety
|
|
|
29
29
|
LOCAL_AUTHORITY_TYPE_CODES.include? la['type']
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
+
return if local_authority_info.nil?
|
|
33
|
+
|
|
32
34
|
LocalAuthority.new local_authority_info
|
|
33
35
|
rescue
|
|
34
36
|
nil
|