Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class MyModel def save(_ = true) # your saving logic goes here! puts "saved" end alias :save! :save # dummy method definitions (required) def update_attribute(*args) end def new_record?() true; end attr_accessor :name include ActiveRecord::Validations validates_presence_of :name end
This paste will be private.
From the Design Piracy series on my blog: