Commit cc5d864715362ec6b78110d4a6afdf1d847ca850
1 parent
3c106e68
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Fix get_signup_start_time
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/controllers/public/account_controller.rb
... | ... | @@ -359,11 +359,11 @@ class AccountController < ApplicationController |
359 | 359 | end |
360 | 360 | |
361 | 361 | def get_signup_start_time |
362 | - Rails.cache.read params[:signup_time_key] if params[:signup_time_key] | |
362 | + Rails.cache.read params[:signup_time_key] if params[:signup_time_key].present? | |
363 | 363 | end |
364 | 364 | |
365 | 365 | def clear_signup_start_time |
366 | - Rails.cache.delete params[:signup_time_key] if params[:signup_time_key] | |
366 | + Rails.cache.delete params[:signup_time_key] if params[:signup_time_key].present? | |
367 | 367 | end |
368 | 368 | |
369 | 369 | def may_be_a_bot | ... | ... |