Skip to content

Instantly share code, notes, and snippets.

@paulspencerwilliams
Created August 31, 2013 16:02
Show Gist options
  • Save paulspencerwilliams/6399147 to your computer and use it in GitHub Desktop.
Save paulspencerwilliams/6399147 to your computer and use it in GitHub Desktop.
class Activity < ActiveRecord::Base
def self.random_undone(amount_to_return)
Activity.where(:done => false).random(amount_to_return)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment