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.

feed.rb 345 B

12 years ago
12 years ago
1234567891011
  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