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.
 
 
 
 
 

10 lines
211 B

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