I have a DailyQuote model in my rails application which has a date and price for a stock. Data in the database has been captured for this model
since rails v5:
Date.current.on_weekend?
References: