Cache oneboxes in Redis now instead of postgres.

This commit is contained in:
Robin Ward
2013-03-21 13:11:54 -04:00
parent 9d4ecd7ef8
commit babcfe6234
10 changed files with 88 additions and 153 deletions

View File

@@ -1,11 +0,0 @@
require 'spec_helper'
describe OneboxRender do
it { should validate_presence_of :url }
it { should validate_presence_of :cooked }
it { should validate_presence_of :expires_at }
it { should have_many :post_onebox_renders }
it { should have_many :posts }
end

View File

@@ -1,8 +0,0 @@
require 'spec_helper'
describe PostOneboxRender do
it { should belong_to :onebox_render }
it { should belong_to :post }
end