Sha256: dae4a977f68e463c23a4ba57f5838f7d756bdc85b082e86b6c726ffa583006a9
Contents?: true
Size: 573 Bytes
Versions: 55
Compression:
Stored size: 573 Bytes
Contents
# frozen_string_literal: true require "active_support/concern" module Decidim # A controller concern to enable flagging capabilities to its resources. Only # affects the UI, so make sure you check the controller resources implement # the `Decidim::Reportable` model concern. module Flaggable extend ActiveSupport::Concern included do helper_method :flaggable_controller?, :report_form def flaggable_controller? true end def report_form Decidim::ReportForm.from_params(reason: "spam") end end end end
Version data entries
55 entries across 55 versions & 1 rubygems