mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 17:30:38 -07:00
Extract Google Analytics ID out to an environment variable
TODO- in the future, consider putting this in a credential. We're not able to change the production credentials file currently, but we should change it in the future when we're able
This commit is contained in:
parent
1186579d1b
commit
48f2d64c71
4 changed files with 27 additions and 2 deletions
|
|
@ -3,6 +3,7 @@ class SqmApplicationController < ActionController::Base
|
|||
layout "sqm/application"
|
||||
before_action :set_schools_and_districts
|
||||
before_action :authenticate_district
|
||||
before_action :set_google_analytics_id
|
||||
|
||||
private
|
||||
|
||||
|
|
@ -34,4 +35,8 @@ class SqmApplicationController < ActionController::Base
|
|||
end
|
||||
end
|
||||
|
||||
def set_google_analytics_id
|
||||
@google_analytics_id = ENV['GOOGLE_ANALYTICS_ID']
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue