summaryrefslogtreecommitdiff
path: root/app/models/application_setting/term.rb
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