Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
class Instance < ActiveRecord::Base has_and_belongs_to_many :dependances, :class_name => 'Instance', :join_table => 'dependances_instances', :foreign_key => 'instance_id', :association_foreign_key => 'dependance_id' has_and_belongs_to_many :parents, :class_name => 'Instance', :join_table => 'dependances_instances', :foreign_key => 'dependance_id', :association_foreign_key => 'instance_id' end
From the Design Piracy series on my blog: