fix oembed caches so data must be present

This commit is contained in:
Maxwell Salzberg 2012-01-03 18:00:16 -08:00
parent 30b180949d
commit 9b05e80e3f

View file

@ -1,6 +1,7 @@
class OEmbedCache < ActiveRecord::Base
serialize :data
attr_accessible :url
validates :data, :presence => true
has_many :posts