Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
Report abuse
1 2 3 4 5 6 7 8 9 10
# Customize finder. def self.find(*args) # Recent 20 messages, using Message.find :recent. if args.first.to_s == 'recent' super :all, :limit => 20, :order => 'created_at DESC' else super end end
Pasted November 10, 2007 2:18AM EDT
by winson
Embed
paste again
Ads from Ruby Row