Parent

Methods

Included Modules

Site

Constants

LANGUAGES

Public Class Methods

list() click to toggle source

manager uses it.

# File app/models/site.rb, line 54
def self.list
  out = self.all.order_by( :domain => :asc, :lang => :asc )
  [['', nil]] + out.map { |item| [ "#{item.domain} #{item.lang}", item.id ] }
end
mobi() click to toggle source
# File app/models/site.rb, line 59
def self.mobi
  Site.where( :domain => 'travel-guide.mobi', :lang => 'en' ).first
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.