Skip to content

Commit

Permalink
Merge pull request #20 from omu/dev
Browse files Browse the repository at this point in the history
Fix serialization error for addresses action
  • Loading branch information
huseyin authored Sep 22, 2018
2 parents 16cf87f + 9f3ec7e commit a3e2ac6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@ AllCops:
- Vagrantfile
Documentation:
Enabled: false
Rails/UnknownEnv:
Environments:
- production
- development
- test
- beta
Metrics/LineLength:
Max: 120
1 change: 0 additions & 1 deletion app/serializers/kps/queries/addresses_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
3 changes: 2 additions & 1 deletion app/services/lib/services/kps/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions config/initializers/rollbar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit a3e2ac6

Please sign in to comment.