mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-05-10 10:27:53 +00:00
This commit autoloads plugin files, and also extracts features into their own modules. - `plugin.rb` is smaller - external plugins like discourse-automation and discourse-assign have their own entrypoints - solved filters as well
10 lines
217 B
Ruby
10 lines
217 B
Ruby
# 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
|