Sha256: defe196c5dbabe4ea7025b6dfcbf7fc1683f092d77b05f7dbb051dd1805d10b1
Contents?: true
Size: 534 Bytes
Versions: 21
Compression:
Stored size: 534 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.options[:polymorphic] && 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
21 entries across 21 versions & 7 rubygems