method

proxy_reflection

rails latest stable - Class: ActiveRecord::Associations::CollectionProxy

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here.

proxy_reflection()
public

No documentation available.

# File activerecord/lib/active_record/associations/collection_proxy.rb, line 150
      def proxy_reflection
        ActiveSupport::Deprecation.warn(
          "Calling record.#{@association.reflection.name}.proxy_reflection is deprecated. Please use "            "record.association(:#{@association.reflection.name}).reflection instead. Or, from an "            "association extension you can access proxy_association.reflection."
        )
        proxy_association.reflection
      end