Sha256: 9a2f195d2a1b20a106f53708555a21145432f063477b3cc8e256a79d26f0a229

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

module Searchlogic
  module ActiveRecord
    module AssociationProxyOverrides
      def self.included(klass)
        klass.class_eval do
          
          def send(method, *args)
            begin
              super
            rescue NoMethodError => e  
              load_target
              @target.send(method, *args)
            end
          end
          
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aq1018-searchlogic-2.4.17 lib/searchlogic/active_record/association_proxy_overrides.rb