Commit 34026104488b8c9a57addb5741c86bff99736a29
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'hotfixes' into stable
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,11 +359,11 @@ class AccountController < ApplicationController | ||
359 | end | 359 | end |
360 | 360 | ||
361 | def get_signup_start_time | 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 | end | 363 | end |
364 | 364 | ||
365 | def clear_signup_start_time | 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 | end | 367 | end |
368 | 368 | ||
369 | def may_be_a_bot | 369 | def may_be_a_bot |