Sha256: 5e732864ab1626ec944fa0bcafc71ed5f6604ccf1587163804c7e82b12a0f644
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
groupdate-1.0.3 | lib/groupdate.rb |