Sha256: 4d4b15d33ce8c1a214c9cffe2587565f678f9366f23523d45433444941f15499
Contents?: true
Size: 370 Bytes
Versions: 7
Compression:
Stored size: 370 Bytes
Contents
# encoding: UTF-8 module ReportMonthly extend ActiveSupport::Concern included do include Report end module ClassMethods def update_current_report today = Date.today date = DateTime.new(today.year, today.month, 1) report = self.find_or_create_by(report_date: date) report.update_report!() return report end end end
Version data entries
7 entries across 7 versions & 1 rubygems