GeoRSS aggregator and Layar augmented reality server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

12 lines
293 B

  1. class Feed
  2. include MongoMapper::Document
  3. key :title, String
  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