debian-mirror-gitlab/app/models/application_setting/term.rb
2018-10-15 14:42:47 +05:30

14 lines
222 B
Ruby

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