Welcome to mirror list, hosted at ThFree Co, Russian Federation.

term.rb « application_setting « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e8ce0ccbb719ffefa66ade7974493cea25bd5fb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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