Class: GolosCloud::Comment

Inherits:
SqlBase
  • Object
show all
Defined in:
lib/golos_cloud/models/comment.rb

Class Method Summary collapse

Methods inherited from SqlBase

#tx

Class Method Details

.find_by_author(user) ⇒ Object



17
18
19
# File 'lib/golos_cloud/models/comment.rb', line 17

def self.find_by_author(user)
  self.where(author: user)
end

.find_by_parent(user) ⇒ Object



21
22
23
# File 'lib/golos_cloud/models/comment.rb', line 21

def self.find_by_parent(user)
  self.where(parent_author: user)
end