Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix ES import error

  • Loading branch information...
commit ef9e34b293432314cbf798c3e7cc32f8763ca1c8 1 parent 91d1ec4
@mutle authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/models/post.rb
View
2  app/models/post.rb
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.