3d6d0a09b6
This allows admins to define terms in the application settings. Every time the terms are adjusted, a new version is stored and becomes the 'active' version. This allows tracking which specific version was accepted by a user.
13 lines
222 B
Ruby
13 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
|