Sha256: 2393d0803d0da87144956d63fe0553ae10948abe3e4626e5817b4fbefe3990f9

Contents?: true

Size: 390 Bytes

Versions: 7

Compression:

Stored size: 390 Bytes

Contents

class WikitravelPage
  include Mongoid::Document
  include Mongoid::Timestamps

  field :title, :type => String
  validates :title, :presence => true, :uniqueness => true

  field :url, :type => String
  validates :url, :presence => true, :uniqueness => true
  
  def self.clear
    if Rails.env.test?
      self.each { |r| r.remove }
    end
  end

  DOMAIN = 'http://wikitravel.org'

end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
ish_lib-0.0.8 app/models/wikitravel_page.rb
ish_lib_engine-0.0.5 app/models/wikitravel_page.rb
ish_lib_engine-0.0.3 app/models/wikitravel_page.rb
ish_lib_engine-0.0.2 app/models/wikitravel_page.rb
ish_lib_engine-0.0.1 app/models/wikitravel_page.rb
ish_lib-0.0.6 lib/app/models/wikitravel_page.rb
ish_lib-0.0.3 app/models/wikitravel_page.rb