Navigation Menu

Skip to content

Commit

Permalink
needs moar validation!
Browse files Browse the repository at this point in the history
  • Loading branch information
holman committed Oct 21, 2010
1 parent 73cb8f0 commit d79e921
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/session.rb
@@ -1,5 +1,7 @@
class Session < ActiveRecord::Base

validates_presence_of :facetime_id

def self.available(session)
@session = Session.find(:first,
:conditions => ["id != ? AND last_checked > ?",
Expand Down

0 comments on commit d79e921

Please sign in to comment.