kaplanlior / midburn-queue

midburn.org tickets queue system
https://midburn.org
MIT License
2 stars 5 forks source link

empty? does not exist for nil exception #19

Open eladg opened 8 years ago

eladg commented 8 years ago

On:

post "#{REGISTER_ROUTE}" do
  halt(400) if params[USERS_EMAIL_PARAM].empty?
  ...
end

if params[USERS_EMAIL_PARAM] is nil

yules commented 8 years ago

should use unless params[USERS_EMAIL_PARAM].present?