Sha256: 4084ce16d2284c8d8246e88f0973deb088ac2ef49936b1f106fdb01956aafa0f
Contents?: true
Size: 432 Bytes
Versions: 2
Compression:
Stored size: 432 Bytes
Contents
# EXAMPLE USAGE of has_many_polymorphic with AssociatedWorkEffort # WorkEffort.class_eval do # has_many_polymorphic :associated_records, # :through => :associated_work_efforts, # :models => [:shipment_items] # end class AssociatedWorkEffort < ActiveRecord::Base attr_protected :created_at, :updated_at belongs_to :work_effort belongs_to :associated_record, :polymorphic => true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
erp_work_effort-4.2.0 | app/models/associated_work_effort.rb |
erp_work_effort-4.0.0 | app/models/associated_work_effort.rb |