Module: ActiveRecord::VirtualAttributes::VirtualIncludes

Extended by:
ActiveSupport::Concern
Included in:
ActiveRecord::VirtualAttributes, VirtualReflections
Defined in:
lib/active_record/virtual_attributes/virtual_includes.rb

Overview

VirtualIncludes associates an includes with an attribute

Model.virtual_attribute :field, :string, :includes => :table Model.includes(:field)

is equivalent to:

Model.includes(:table)

Defined Under Namespace

Modules: ClassMethods