discourse-solved/app/lib/user_summary_extension.rb

10 lines
217 B
Ruby
Raw Normal View History

2024-03-05 06:14:32 -05:00
# frozen_string_literal: true
module DiscourseSolved::UserSummaryExtension
extend ActiveSupport::Concern
def solved_count
UserAction.where(user: @user).where(action_type: UserAction::SOLVED).count
end
end