Skip to content

Instantly share code, notes, and snippets.

@tagrudev
Created April 13, 2013 13:42
Show Gist options
  • Save tagrudev/5378452 to your computer and use it in GitHub Desktop.
Save tagrudev/5378452 to your computer and use it in GitHub Desktop.
private
def play_games
Game.unscoped.where(:state => "active", :start_at.lt => Time.zone.now).each do |game|
game.play
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment