Sha256: 4c3e738717fa5fb87dc2200bfc5df25f958a219c4f383d0949631ab7432c2131
Contents?: true
Size: 541 Bytes
Versions: 3
Compression:
Stored size: 541 Bytes
Contents
# frozen_string_literal: true module Decidim module Accountability # The data store for a Result in the Decidim::Accountability component. It stores a # title, description and any other useful information to render a custom result. class TemplateTexts < Accountability::ApplicationRecord include Decidim::HasFeature feature_manifest_name "accountability" def self.for(current_feature) self.where(feature: current_feature).first || self.create!(feature: current_feature) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems