class WinewooCore::Services::Finders::Comments::WinewooUserCommentsFinder
Public Class Methods
new(winewoo_user_id, filters)
click to toggle source
Calls superclass method
WinewooCore::Services::Finders::Comments::CommentsFinder::new
# File lib/winewoo_core/services/finders/comments/winewoo_user_comments_finder.rb, line 4 def initialize(winewoo_user_id, filters) super(filters) @winewoo_user_id = winewoo_user_id end
Public Instance Methods
find()
click to toggle source
# File lib/winewoo_core/services/finders/comments/winewoo_user_comments_finder.rb, line 10 def find return unless @winewoo_user_id winewoo_user = User.find(@winewoo_user_id) return unless winewoo_user return winewoo_user.user_comments .page(@page || 1) .per(@per_page || Kaminari::config.default_per_page) end