Remove duplication from date_time calculations
Methods: :past? and :future? are already defined identically in date_and_time/calculations.rb which is included in Date. Because DateTime is a subclass of Date, it can call them.
Showing
想要评论请 注册 或 登录