Sha256: eabbe87c4b5338deb09265827f93973c34c9e4c0f548c36b3a71ba929ebaeaa2
Contents?: true
Size: 613 Bytes
Versions: 7
Compression:
Stored size: 613 Bytes
Contents
require "groupdate/version" require "groupdate/scopes" ActiveRecord::Base.send :extend, Groupdate::Scopes # hack for **unfixed** rails issue # https://github.com/rails/rails/issues/7121 module ActiveRecord module Calculations private def column_alias_for_with_hack(*keys) if keys.first.is_a?(Groupdate::OrderHack) keys.first.field else column_alias_for_without_hack(*keys) end end alias_method_chain :column_alias_for, :hack end end module Groupdate mattr_accessor :week_start, :day_start, :time_zone self.week_start = :sun self.day_start = 0 end
Version data entries
7 entries across 7 versions & 1 rubygems