Class: Countdowner::Message
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Countdowner::Message
- Defined in:
- lib/countdowner/message.rb
Class Method Summary collapse
Class Method Details
.current ⇒ Object
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 |