Commit
8abe1cc553ac50a9683e2f48e63fbf1ba4f6da90
Exists in
master
and in
22 other branches
angular_poc, api-article-archived, article-readonly, backup-7-jan-2016, captcha_serpro_plugin, content-manager-hostspot, export-comment-paragraph, fix_event_date_issue, login-captcha, master_rails3, new_video_plugin, pg_search_rank, production, refactor_with_role, refactor_with_role_scope, remove_profile_cat_icons, resend_confirmation_email, staging, staging_rails3, tasks_keep_filter_params, theme-brasil-digital-from-staging, travis
Removing redundancy in config loading
| @@ -11,8 +11,7 @@ class GoogleMaps |
| @@ -11,8 +11,7 @@ class GoogleMaps |
11
| end |
11
| end |
12
| |
12
| |
13
| def config |
13
| def config |
14
| - @config = web2_conf['googlemaps'] if @config.nil? |
| |
15
| - @config ||= {} |
14
| + @config ||= (web2_conf['googlemaps'] || {}) |
16
| end |
15
| end |
17
| |
16
| |
18
| def enabled? |
17
| def enabled? |