GeoRSS aggregator and Layar augmented reality server
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

12 rindas
345 B

  1. class Feed
  2. include MongoMapper::Document
  3. key :title, String, :default => "[New feed - hasn't been fetched yet]"
  4. key :link, String
  5. key :last_fetched, Time, :default => nil
  6. timestamps!
  7. validates :title, :link, :presence => true
  8. validates_format_of :link, :with => URI::regexp(%w(http https)), :message => "must be a valid URL"
  9. end