usman 0.3.29 → 0.3.30

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9839d730797d07337b7149badcdbf025934f356e
4
- data.tar.gz: 73c00478cf0c8caec5ed7f2de7f59badbf33265c
3
+ metadata.gz: a33182444e966fc4ebcedd4ce61d7100e9f9e584
4
+ data.tar.gz: aa1144b0de94877bddc97d7bbca5d4ca7af40ac9
5
5
  SHA512:
6
- metadata.gz: 32981f73b6c4fe759f6e15d818b4376749a8c8b3fc9d2a4316bcbf9d403528cf5a1ce3c368ded4f2b4db12217ebc44755759a8574da2b91d09a57ace24f26dfc
7
- data.tar.gz: c32f1463a7b3248d2b2cbd39996cc3a545afe2d11b7fb04d6b41437495b92048d294b8f47116d6d7630edef0dfbe7fb293df4c764c922336a6fcfec74e5646ef
6
+ metadata.gz: 690e29b09a15ae51d0eb06926adbbee07edc67d2b1ba1eb8772ddd6e592f0a2344fade13713265cbd246797b191ed298f2539d3665c9c295563ca457c9c873af
7
+ data.tar.gz: f9d14b81a77015d3585164a46234923813f94b858cd04a9a3188a61a769582c9a2c2f7bfeee82c776a4f073b58f0c529712863311baf17534288a867875b9b3d
@@ -13,7 +13,6 @@ module Usman
13
13
  message: I18n.translate("api.profile.user_does_not_exists.message")
14
14
  }
15
15
  else
16
-
17
16
  contacts = []
18
17
  params[:contacts].each do |cnt|
19
18
  contact = Usman::Contact.new
@@ -101,11 +100,7 @@ module Usman
101
100
  end
102
101
 
103
102
  private
104
-
105
- def permitted_params
106
- params.permit(:name, :account_type, :email, :address, :contact_number)
107
- end
108
-
103
+
109
104
  end
110
105
  end
111
106
  end
@@ -67,6 +67,7 @@ class Usman::Contact < Usman::ApplicationRecord
67
67
  end
68
68
 
69
69
  def get_done_deal_user
70
+ return nil unless self.contact_number
70
71
  formatted_number = parse_phone_number(self.contact_number)
71
72
  reg = Registration.where("CONCAT_WS('', dialing_prefix, mobile_number) = ?", formatted_number).first
72
73
  return reg && reg.user ? reg.user : nil
@@ -1,3 +1,3 @@
1
1
  module Usman
2
- VERSION = '0.3.29'
2
+ VERSION = '0.3.30'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.29
4
+ version: 0.3.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma