sdruby/sdruby — pull request #31 by chriskelly (2012-02-07 23:41:15+00:00)
Title: 22 fix random featured project

SQLite and MySQL have different methods for ordering by random. SQLite is used in development and MySQL is used in production, so both need to be supported.

RAND() in MySQL is not a good idea generally, but is really only a problem in large datasets. So doing anything other than a simple fix would be overkill at this point.

Updated the featured method to use 3.1 style where clauses.

Fixes issue #22