lib/centaman/service/create_primary_member.rb in centaman-4.0.4 vs lib/centaman/service/create_primary_member.rb in centaman-4.0.5
- old
+ new
@@ -5,12 +5,12 @@
include Centaman::JsonWrapper
attr_reader :first_name, :last_name, :email, :password
def after_init(args)
- @first_name = args[:first_name]
- @last_name = args[:last_name]
- @email = args[:email]
+ @first_name = args[:first_name].try(:squish)
+ @last_name = args[:last_name].try(:squish)
+ @email = args[:email].try(:squish)
@password = args[:password] || SecureRandom.hex
end
def endpoint
'/member_services/Member'