@@ -31,14 +31,22 @@ class Post < ActiveRecord::Base
end
#scopes
scope:includes_for_a_stream,includes(:o_embed_cache,:open_graph_cache,{:author=>:profile},:mentions=>{:person=>:profile})#note should include root and photos, but i think those are both on status_message
scope:includes_for_a_stream,->{
includes(:o_embed_cache,
:open_graph_cache,
{:author=>:profile},
:mentions=>{:person=>:profile}
)#note should include root and photos, but i think those are both on status_message