10 lines
223 B
Ruby
10 lines
223 B
Ruby
class Document < ApplicationRecord
|
|
belongs_to :documentable, polymorphic: true, optional: true
|
|
|
|
translates :title, :content
|
|
|
|
def self.terms_and_conditions
|
|
where(label: "t&c", documentable_id: nil).first
|
|
end
|
|
end
|