Sha256: fd387f5d0cf6d44f5fd4b2e842552a33a2c13fd7678c9d7d1302bd8026a89b94
Contents?: true
Size: 738 Bytes
Versions: 1
Compression:
Stored size: 738 Bytes
Contents
require "active_support/core_ext/module/attribute_accessors" require "active_support/time" require "groupdate/version" require "groupdate/relation_builder" require "groupdate/series_builder" require "groupdate/magic" module Groupdate class Error < RuntimeError; end PERIODS = [:second, :minute, :hour, :day, :week, :month, :quarter, :year, :day_of_week, :hour_of_day, :minute_of_hour, :day_of_month, :month_of_year] 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-4.0.1 | lib/groupdate.rb |