Permalink
Browse files

Fix ES import error

  • Loading branch information...
1 parent 91d1ec4 commit ef9e34b293432314cbf798c3e7cc32f8763ca1c8 @mutle committed Dec 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/post.rb
View
@@ -29,7 +29,7 @@ class Post < ActiveRecord::Base
# end
def to_indexed_json
- return {}.to_json if !channel.default_read?
+ return {}.to_json if !channel || !channel.default_read?
{
:_id => _id,
:body => body,

0 comments on commit ef9e34b

Please sign in to comment.