Class: PostDigest

Inherits:
ApplicationRecord show all
Defined in:
app/models/post_digest.rb

Instance Method Summary collapse

Instance Method Details

#postsObject


7
8
9
# File 'app/models/post_digest.rb', line 7

def posts
  Post.where(id: post_ids.split(','))
end