Class: Countdowner::Message

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/countdowner/message.rb

Class Method Summary collapse

Class Method Details

.currentObject



8
9
10
# File 'lib/countdowner/message.rb', line 8

def self.current
  find(:all, :order => "target", :conditions => ["target > :now and end_at > :now", {:now => Time.now.utc}])
end