method

proxy_target

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_target()
public

No documentation available.

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