app/models/user.rb
# Return "true" if can_login_starting_at for this user is null or has passed.
# Return "false" otherwise (that is, if we are still cooling off)
# Always return "false" for an unactivated account.
Return "true" if can_login_starting_at for this user is null or has passed.
Return "false" otherwise (that is, if we are still cooling off)
Always return "false" for an unactivated account.
Return " true " if can_login_starting_at for this user is null or has passed . Return " false " otherwise ( that is if we are still cooling off ) Always return " false " for an unactivated account .
def login_allowed_now?
    return false unless activated?
    start_time = can_login_starting_at
    start_time.blank? || Time.zone.now >= start_time
  end
def login_allowed_now? return false unless activated? start_time = can_login_starting_at start_time . blank? || Time . zone . now >= start_time end
Return "true" if can_login_starting_at for this user is null or has passed.
Return " true " if can_login_starting_at for this user is null or has passed .