diff --git a/app/models/concerns/account_settings.rb b/app/models/concerns/account_settings.rb index 2e251458c..fbba8d765 100644 --- a/app/models/concerns/account_settings.rb +++ b/app/models/concerns/account_settings.rb @@ -161,11 +161,8 @@ def set_smtp_settings def reload_library_config Hyrax.config do |config| config.contact_email = contact_email - config.analytics = google_analytics_id.present? - config.google_analytics_id = google_analytics_id if google_analytics_id.present? config.geonames_username = geonames_username config.uploader[:maxFileSize] = file_size_limit - config.analytics_provider = analytics_provider if analytics_provider.present? end Devise.mailer_sender = contact_email diff --git a/spec/models/concerns/account_settings_spec.rb b/spec/models/concerns/account_settings_spec.rb index 7550a45c4..258a69811 100644 --- a/spec/models/concerns/account_settings_spec.rb +++ b/spec/models/concerns/account_settings_spec.rb @@ -36,7 +36,6 @@ end context 'when is_superadmin is false' do - # rubocop:disable RSpec/ExampleLength it 'returns all settings except private, disabled, and superadmin settings' do expect(Account::SUPERADMIN_SETTINGS.size).to eq 7 expect(account.public_settings(is_superadmin: false).keys.sort).to eq %i[allow_downloads @@ -57,7 +56,6 @@ ssl_configured] expect(account.public_settings(is_superadmin: false).size).to eq 16 end - # rubocop:enable RSpec/ExampleLength end end end