Sha256: 9e95b8db1b5af3c84230f1f2d4ef96cffdd21959ad329dd47c03577af4ec5c48
Contents?: true
Size: 569 Bytes
Versions: 1
Compression:
Stored size: 569 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.macro != :belongs_to && !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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
searchlogic-2.4.28 | lib/searchlogic/active_record/association_proxy.rb |