Sha256: 46f7d26b8704cb2767f221d07e6c159f2508e0f76eb48aaf9d3f51531f9cc232

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true

module Datewari
  class Paginator
    class Mysql < Base
      self.cast_function = 'DATE_FORMAT'
      self.date_format = { yearly:  '%Y-%m-01',
                           monthly: '%Y-%m-01',
                           weekly:  '%x-%v',
                           daily:   '%Y-%m-%d' }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datewari-1.1.1 lib/datewari/paginator/mysql.rb