debian-mirror-gitlab/app/models/application_setting/term.rb

14 lines
222 B
Ruby
Raw Normal View History

2018-10-15 14:42:47 +05:30
class ApplicationSetting
class Term < ActiveRecord::Base
include CacheMarkdownField
validates :terms, presence: true
cache_markdown_field :terms
def self.latest
order(:id).last
end
end
end