Is Active

Posted on April 13, 2009, under Rails.

  def is_active?
    (start_date .. expiry_date) === DateTime.now
  end

Leave a Comment

You must be logged in to post a comment.