Class: Feature

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

Class Method Summary collapse

Class Method Details

.allObject


30
31
32
# File 'lib/feature.rb', line 30

def self.all
  self.order_by( :created_at => :desc )
end

.n_featuresObject


34
35
36
# File 'lib/feature.rb', line 34

def self.n_features
  4
end