I have models Order and OrderItem. I'd like to autoload the Items once an order is loaded. Something like this:
class Order < ActiveRecord::Base
has_many :order_items, :include => true
end
or
class Order < ActiveRecord::Base
include :order_items
has_many: order_items
end
I'm sure that I have seen something like that but I can't find it anymore.