app/services/dynamic_content/base.rb
def has_preview_url_expired?
      input_ts = @params['ts'].to_i
      threshold_time = Time.now - 5 * 60 # check if token is older than 5 minutes
      input_ts < threshold_time.to_i
    end
# Check if preview url has expired or not (i.e. older than particular threshold time)
#
# * Author: Mayur
# * Date: 3-09-2018
# * Reviewed by: Sunil Khedar
#
# @return [Boolean] return boolean value
#
Check if preview url has expired or not
Author: Mayur
Date: 3-09-2018
Reviewed by: Sunil Khedar
Check if preview url has expired or not Author : Mayur Date : 3 - 09 - 2018 Reviewed by : Sunil Khedar
def has_preview_url_expired?
      input_ts = @params['ts'].to_i
      threshold_time = Time.now - 5 * 60 
      input_ts < threshold_time.to_i
    end
def has_preview_url_expired? input_ts = @params [ 'ts' ] . to_i threshold_time = Time . now - 5 * 60 input_ts < threshold_time . to_i end
Check if preview url has expired or not (i.e.
Check if preview url has expired or not ( i . e .
# check if token is older than 5 minutes
return boolean value
return boolean value
Boolean