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

Version Path
nberger-searchlogic-2.4.29 lib/searchlogic/active_record/association_proxy.rb
nberger-searchlogic-2.4.28 lib/searchlogic/active_record/association_proxy.rb
obitum-searchlogic-2.4.28 lib/searchlogic/active_record/association_proxy.rb
rd_searchlogic-3.0.1 lib/searchlogic/active_record/association_proxy.rb
rd_searchlogic-3.0.0 lib/searchlogic/active_record/association_proxy.rb
rd_searchlogic-3.0.0.rc4 lib/searchlogic/active_record/association_proxy.rb
searchlogic-2.4.27 lib/searchlogic/active_record/association_proxy.rb
yoomee-searchlogic-2.4.27 lib/searchlogic/active_record/association_proxy.rb
rd_searchlogic-3.0.0.rc3 lib/searchlogic/active_record/association_proxy.rb
searchlogic-2.4.26 lib/searchlogic/active_record/association_proxy.rb
searchlogic-2.4.25 lib/searchlogic/active_record/association_proxy.rb
rd_searchlogic-3.0.0.rc2 lib/searchlogic/active_record/association_proxy.rb
searchlogic-2.4.24 lib/searchlogic/active_record/association_proxy.rb
searchlogic-2.4.23 lib/searchlogic/active_record/association_proxy.rb
searchlogic-2.4.22 lib/searchlogic/active_record/association_proxy.rb
rd_searchlogic-3.0.0.rc lib/searchlogic/active_record/association_proxy.rb
searchlogic-heroku-2.4.19 lib/searchlogic/active_record/association_proxy.rb
searchlogic-2.4.21 lib/searchlogic/active_record/association_proxy.rb
gravis-searchlogic-2.4.20 lib/searchlogic/active_record/association_proxy.rb
searchlogic-2.4.19 lib/searchlogic/active_record/association_proxy.rb