Class: ChangeLog::Base

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/change_log/mongoid_model.rb,
lib/change_log/activerecord_model.rb

Class Method Summary collapse

Class Method Details

.fetch(options) ⇒ Object



12
13
14
# File 'lib/change_log/mongoid_model.rb', line 12

def self.fetch(option)
  all.desc('time')
end

.last_releaseObject



16
17
18
# File 'lib/change_log/mongoid_model.rb', line 16

def self.last_release
  last
end