Sha256: 9c141278661e69124d1ba74c7bf228b6d6a789a9785a3f622ee190a07a51bad9
Contents?: true
Size: 730 Bytes
Versions: 1
Compression:
Stored size: 730 Bytes
Contents
require "active_support/core_ext/module/attribute_accessors" require "active_support/time" require "groupdate/version" require "groupdate/magic" module Groupdate class Error < RuntimeError; end PERIODS = [:second, :minute, :hour, :day, :week, :month, :quarter, :year, :day_of_week, :hour_of_day, :day_of_month, :month_of_year] # backwards compatibility for anyone who happened to use it FIELDS = PERIODS METHODS = PERIODS.map { |v| :"group_by_#{v}" } + [:group_by_period] mattr_accessor :week_start, :day_start, :time_zone, :dates self.week_start = :sun self.day_start = 0 self.dates = true end require "groupdate/enumerable" ActiveSupport.on_load(:active_record) do require "groupdate/active_record" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
groupdate-3.2.0 | lib/groupdate.rb |