diff --git a/.rubocop.yml b/.rubocop.yml index 2dda18a2..a4ba0ea1 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -14,5 +14,11 @@ AllCops: - Vagrantfile Documentation: Enabled: false +Rails/UnknownEnv: + Environments: + - production + - development + - test + - beta Metrics/LineLength: Max: 120 \ No newline at end of file diff --git a/app/serializers/kps/queries/addresses_serializer.rb b/app/serializers/kps/queries/addresses_serializer.rb index 264541f1..1b1e1601 100644 --- a/app/serializers/kps/queries/addresses_serializer.rb +++ b/app/serializers/kps/queries/addresses_serializer.rb @@ -7,7 +7,6 @@ class AddressesSerializer < Serializer attribute :current_address do address = object[:yerlesim_yeri_adresi] - next if address[:hata_bilgisi] { full_address: address[:acik_adres], diff --git a/app/services/lib/services/kps/constants.rb b/app/services/lib/services/kps/constants.rb index 6ba310f9..520bf949 100644 --- a/app/services/lib/services/kps/constants.rb +++ b/app/services/lib/services/kps/constants.rb @@ -8,7 +8,8 @@ class Queries < Base operation: :adres_sorgula, result: %i[adres_sorgula_response return sorgula_result sorgu_sonucu kimlik_noile_kisi_adres_bilgileri], - status: %i[adres_sorgula_response return sorgula_result sorgu_sonucu hata_bilgisi] + status: %i[adres_sorgula_response return sorgula_result sorgu_sonucu + kimlik_noile_kisi_adres_bilgileri hata_bilgisi] }, identities: { operation: :sorgula, diff --git a/config/initializers/rollbar.rb b/config/initializers/rollbar.rb index 8de1e107..21afac22 100644 --- a/config/initializers/rollbar.rb +++ b/config/initializers/rollbar.rb @@ -12,6 +12,8 @@ # config.person_method = "my_current_user" # config.person_id_method = "my_id" + config.enabled = false unless Rails.env.production? || Rails.env.beta? + # Additionally, you may specify the following: config.person_username_method = 'id_number' config.person_email_method = 'email'