Class: Venue

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/venue.rb

Constant Summary collapse

PER_PAGE =
6

Class Method Summary collapse

Class Method Details

.list(conditions = { :is_trash => false }) ⇒ Object


48
49
50
51
# File 'lib/venue.rb', line 48

def self.list conditions = { :is_trash => false }
  out = self.where( conditions).order_by( :name => :asc )
  [['', nil]] + out.map { |item| [ item.name, item.id ] }
end

.n_featuresObject


72
73
74
# File 'lib/venue.rb', line 72

def self.n_features
  6
end

.typesObject


63
64
65
66
67
68
69
70
# File 'lib/venue.rb', line 63

def self.types
  return []
#    if 'en' == @locale
#      [ 'Hotels', 'Restaurants', 'Bars' ]
#    else
#      [ 'Hotels', 'Restaurants', 'Bars' ]
#    end
end