Advertisement
Guest User

FixNum problem

a guest
Mar 12th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.27 KB | None | 0 0
  1. def get_end_customers(client_id="")
  2.   if params[:client_id].nil?
  3.     @client_id = client_id
  4.   else
  5.     @client_id = params[:client_id]
  6.   end
  7.   unless @client_id.nil? || @client_id.empty? #this line breaks when @client_id is FixNum type
  8.     #do something
  9.   end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement