Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class ActiveRecord::Base named_scope :sort, lambda {|column| if self.column_names.include? column.to_s {:order => column.to_s} else scoped end } end class Car < ActiveRecord::Base end Car.sort("wheel") => NoMethodError: undefined method `abstract_class?' for Object:Class
This paste will be private.
From the Design Piracy series on my blog: