Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- belongs_to :resource, :polymorphic => true
- # belongs_to :customer, :polymorphic => true, :foreign_key => 'resource_id'
- # belongs_to :order, :polymorphic => true, :foreign_key => 'resource_id'
- # belongs_to :warranty_contract, :polymorphic => true, :foreign_key => 'resource_id'
Add Comment
Please, Sign In to add comment