Sha256: ab645eb70aabec8693a6f3060a37e40f28a07cadced56cc83f4d062eafe9b9db
Contents?: true
Size: 1.15 KB
Versions: 8
Compression:
Stored size: 1.15 KB
Contents
# frozen_string_literal: true module Decidim module Results # The data store for a Result in the Decidim::Results component. It stores a # title, description and any other useful information to render a custom result. class Result < Results::ApplicationRecord include Decidim::Resourceable include Decidim::HasFeature include Decidim::HasScope include Decidim::HasCategory include Decidim::HasReference include Decidim::Comments::Commentable feature_manifest_name "results" # Public: Overrides the `commentable?` Commentable concern method. def commentable? feature.settings.comments_enabled? end # Public: Overrides the `accepts_new_comments?` Commentable concern method. def accepts_new_comments? commentable? && !feature.active_step_settings.comments_blocked end # Public: Overrides the `comments_have_alignment?` Commentable concern method. def comments_have_alignment? true end # Public: Overrides the `comments_have_votes?` Commentable concern method. def comments_have_votes? true end end end end
Version data entries
8 entries across 8 versions & 2 rubygems