epergo
7/16/2017 - 10:00 AM

article.rb

class Article < ApplicationRecord
    def is_available?
      Time.now >= publish_on
    end
end