discourse/app/models/onebox_render.rb

9 lines
247 B
Ruby
Raw Normal View History

2013-02-05 14:16:51 -05:00
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
2013-02-05 14:16:51 -05:00
has_many :posts, through: :post_onebox_renders
end