Class: Libertree::Model::PostHidden
- Inherits:
-
Object
- Object
- Libertree::Model::PostHidden
- Defined in:
- lib/libertree/model/post-hidden.rb
Instance Method Summary collapse
Instance Method Details
#account ⇒ Object
4 5 6 |
# File 'lib/libertree/model/post-hidden.rb', line 4 def account @account ||= Account[self.account_id] end |
#forests ⇒ Object
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 |
#post ⇒ Object
8 9 10 |
# File 'lib/libertree/model/post-hidden.rb', line 8 def post @post ||= Post[self.post_id] end |