Skip to content

A platform for community discussion. Free, open, simple.

306 B
Raw Blame
# frozen_string_literal: true

module PostVoting
  module TopicListItemSerializerExtension
    def self.included(base)
      base.attributes :is_post_voting
    end

    def is_post_voting
      object.is_post_voting?
    end

    def include_is_post_voting?
      object.is_post_voting?
    end
  end
end