mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
14 lines
433 B
Ruby
14 lines
433 B
Ruby
class LeaderRequirementsSerializer < ApplicationSerializer
|
|
attributes :time_period,
|
|
:requirements_met,
|
|
:days_visited, :min_days_visited,
|
|
:num_topics_replied_to, :min_topics_replied_to,
|
|
:topics_viewed, :min_topics_viewed,
|
|
:posts_read, :min_posts_read,
|
|
:num_flagged_posts, :max_flagged_posts
|
|
|
|
def requirements_met
|
|
object.requirements_met?
|
|
end
|
|
end
|