Commit 8abe1cc553ac50a9683e2f48e63fbf1ba4f6da90

Authored by Antonio Terceiro
1 parent 949339eb

Removing redundancy in config loading

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
app/models/google_maps.rb
... ... @@ -11,8 +11,7 @@ class GoogleMaps
11 11 end
12 12  
13 13 def config
14   - @config = web2_conf['googlemaps'] if @config.nil?
15   - @config ||= {}
  14 + @config ||= (web2_conf['googlemaps'] || {})
16 15 end
17 16  
18 17 def enabled?
... ...