Class: Libertree::Model::PostHidden

Inherits:
Object
  • Object
show all
Defined in:
lib/libertree/model/post-hidden.rb

Instance Method Summary collapse

Instance Method Details

#accountObject



4
5
6
# File 'lib/libertree/model/post-hidden.rb', line 4

def 
  @account ||= Account[self.]
end

#forestsObject



12
13
14
15
16
17
18
# File 'lib/libertree/model/post-hidden.rb', line 12

def forests
  if self.post.remote?
    self.post.server.forests
  else
    Libertree::Model::Forest.all_local_is_member
  end
end

#postObject



8
9
10
# File 'lib/libertree/model/post-hidden.rb', line 8

def post
  @post ||= Post[self.post_id]
end