Sha256: 55074bc6a69ff8b03bc2c2203447c33f1f97e2696a5aeed2018afc72a725d688

Contents?: true

Size: 353 Bytes

Versions: 2

Compression:

Stored size: 353 Bytes

Contents

module ChangeLog
  class Base
    include Mongoid::Document
    include Mongoid::Timestamps

    field :version, type: String
    field :author, type: String
    field :message, type: String
    field :time, type: DateTime
    field :tags

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

    def self.last_release
      last
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
change-log-0.0.5 lib/change_log/mongoid_model.rb
change-log-0.0.4 lib/change_log/mongoid_model.rb