GeoRSS aggregator and Layar augmented reality server
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 

12 rader
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