diff --git a/app/controllers/placements/support/provider_suggestions_controller.rb b/app/controllers/placements/support/provider_suggestions_controller.rb index f7fd56032b..3be74b2ed7 100644 --- a/app/controllers/placements/support/provider_suggestions_controller.rb +++ b/app/controllers/placements/support/provider_suggestions_controller.rb @@ -22,7 +22,7 @@ def filter_providers(providers, query) provider.dig("attributes", "name"), provider.dig("attributes", "postcode"), provider.dig("attributes", "urn"), - provider.dig("attributes", "ukprn"), + provider.dig("attributes", "ukprn") ].any? { |attribute| attribute&.downcase&.include?(downcase_query) } end end @@ -31,7 +31,7 @@ def formatted_provider(provider) { id: provider.fetch("id"), name: provider.dig("attributes", "name"), - code: provider.dig("attributes", "code"), + code: provider.dig("attributes", "code") } end end diff --git a/app/helpers/routes_helper.rb b/app/helpers/routes_helper.rb index 2d7db43836..f916d14868 100644 --- a/app/helpers/routes_helper.rb +++ b/app/helpers/routes_helper.rb @@ -2,14 +2,14 @@ module RoutesHelper def root_path { claims: claims_root_path, - placements: placements_root_path, + placements: placements_root_path }.fetch current_service end def support_root_path { claims: root_path, # TODO: claims support path in another PR - placements: placements_support_root_path, + placements: placements_support_root_path }.fetch current_service end end diff --git a/app/models/dfe_sign_in_user.rb b/app/models/dfe_sign_in_user.rb index f46cef7c89..4ae7efd6b1 100644 --- a/app/models/dfe_sign_in_user.rb +++ b/app/models/dfe_sign_in_user.rb @@ -21,7 +21,7 @@ def self.begin_session!(session, omniauth_payload) "email" => omniauth_payload["info"]["email"], # "dfe_sign_in_uid" => omniauth_payload["uid"], "first_name" => omniauth_payload["info"]["first_name"], - "last_name" => omniauth_payload["info"]["last_name"], + "last_name" => omniauth_payload["info"]["last_name"] # "last_active_at" => Time.zone.now, # "id_token" => omniauth_payload["credentials"]["id_token"], # "provider" => omniauth_payload["provider"], @@ -39,7 +39,7 @@ def self.load_from_session(session) last_name: dfe_sign_in_session["last_name"], # id_token: dfe_sign_in_session["id_token"], # provider: dfe_sign_in_session["provider"], - service: session["service"], + service: session["service"] ) end diff --git a/app/models/provider.rb b/app/models/provider.rb index 791afa3bd7..3c05770053 100644 --- a/app/models/provider.rb +++ b/app/models/provider.rb @@ -16,6 +16,6 @@ class Provider < ApplicationRecord validates :provider_code, uniqueness: { case_sensitive: false, - message: "Provider already exists!", + message: "Provider already exists!" } end diff --git a/app/services/gias_csv_importer.rb b/app/services/gias_csv_importer.rb index ac2a4fb226..439057049e 100644 --- a/app/services/gias_csv_importer.rb +++ b/app/services/gias_csv_importer.rb @@ -32,7 +32,7 @@ def call address2: school["Locality"].presence, address3: school["Address3"].presence, website: school["SchoolWebsite"].presence, - telephone: school["TelephoneNum"].presence, + telephone: school["TelephoneNum"].presence } end