Module: Searchlogic::ActiveRecord::AssociationProxyOverrides
- Included in:
- ActiveRecord::Associations::AssociationProxy
- Defined in:
- lib/searchlogic/active_record/association_proxy_overrides.rb
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/searchlogic/active_record/association_proxy_overrides.rb', line 4 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 |