I've the following condition in one of my model which works for mysql.
with_scope :find => { :conditions => "starts_at <= now() AND ends_at >= now()" }
But I get error on the sqlite3 test database coz that now() is specific to mysql db only. What would be a db agnostic way for that now() function?