Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

TextMate indenting (See related posts)

class Feed < ActiveRecord::Base
has_many :items

def self.aggregate

Feed.find_by_sql( "SELECT * FROM feeds WHERE is_enabled = 1 AND ( DATE_ADD( last_read, INTERVAL 1 HOUR ) < NOW() OR last_read = 0 OR last_read IS NULL )" ).each do |feed|

You need to create an account or log in to post comments to this site.


Related Posts