Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class Entry < ActiveRecord::Base has_many :assets, :polymorphic => :true, :dependent => :destroy end class Asset < ActiveRecord::Base belongs_to :entry end class Photo < Asset end class Video < Asset end entry = Entry.new entry.assets << Photo.new entry.assets << Video.new entry.destroy
This paste will be private.
From the Design Piracy series on my blog: