Class: ActiveRecord::Associations::AssociationCollection
- Inherits:
-
AssociationProxy
- Object
- AssociationProxy
- ActiveRecord::Associations::AssociationCollection
- Defined in:
- lib/rails2_ruby2/active_record_associations.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ActiveRecord::Associations::AssociationProxy
Instance Method Details
#proxy_respond_to?(method, include_all = false) ⇒ Boolean
24 25 26 27 28 |
# File 'lib/rails2_ruby2/active_record_associations.rb', line 24 def proxy_respond_to?(method, include_all = false) super || @reflection.klass.respond_to?(method, include_all) || (!include_all && @reflection.klass.protected_methods.include?(method)) end |