Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
# Note, I get the error in my tests when the 2nd and 3rd # 'include's are commented out or not, makes no difference. class Person include DataMapper::Resource #include DataMapper::Validate #include DataMapper::Timestamp belongs_to :store has 0..n, :jobs # DM key property :id, Integer, :serial => true # DM Attributes property :store_id, Integer property :name, String property :created_at, DateTime property :updated_at, DateTime validates_present :name # left out some methods end
This paste will be private.
From the Design Piracy series on my blog: