GeoRSS aggregator and Layar augmented reality server
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

12 行
277 B

  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