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.

layer.rb 277 B

1234567891011
  1. class Layer < ActiveRecord::Base
  2. has_many :subscriptions
  3. has_many :feeds, :through => :subscriptions, :uniq => true
  4. attr_accessible :name, :icon_url
  5. # Unique name for Layar layer
  6. def layar_name
  7. "apollo" + self.name.strip.downcase.gsub(/[^a-z0-9]/, '')
  8. end
  9. end