Sha256: be7a01762d5e382312dcebdbaa6d0bb34f0943dd1589dfebc2b42559b1ec5c89
Contents?: true
Size: 491 Bytes
Versions: 3
Compression:
Stored size: 491 Bytes
Contents
module Searchlogic module ActiveRecord module AssociationProxy def self.included(klass) klass.class_eval do alias_method_chain :send, :searchlogic end end def send_with_searchlogic(method, *args) if !proxy_respond_to?(method) && proxy_reflection.klass.condition?(method) proxy_reflection.klass.send(method, *args) else send_without_searchlogic(method, *args) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems