Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

October 19 2010

00:44

October 04 2010

05:31

September 09 2010

23:49

August 06 2010

02:34
02:22

March 26 2010

16:29

the { buckblogs :here }: Helping ActiveRecord finders help you

class Thing < ActiveRecord::Base def self.find(*args) if args.first.to_s == "random" ids = connection.select_all("SELECT id FROM things") super(ids[rand(ids.length)]["id"].to_i) else super end end end

November 13 2008

09:24
Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.