mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 16:13:45 +08:00
11 lines
252 B
Ruby
11 lines
252 B
Ruby
|
class OneboxRender < ActiveRecord::Base
|
||
|
|
||
|
validates_presence_of :url
|
||
|
validates_presence_of :cooked
|
||
|
validates_presence_of :expires_at
|
||
|
|
||
|
has_many :post_onebox_renders, :dependent => :delete_all
|
||
|
has_many :posts, through: :post_onebox_renders
|
||
|
|
||
|
end
|