lib/decidim/debates/feature.rb in decidim-debates-0.9.3 vs lib/decidim/debates/feature.rb in decidim-debates-0.10.0
- old
+ new
@@ -11,14 +11,16 @@
raise StandardError, "Can't remove this feature" if Decidim::Debates::Debate.where(feature: instance).any?
end
feature.settings(:global) do |settings|
settings.attribute :comments_enabled, type: :boolean, default: true
+ settings.attribute :announcement, type: :text, translated: true, editor: true
end
feature.settings(:step) do |settings|
settings.attribute :creation_enabled, type: :boolean, default: false
settings.attribute :comments_blocked, type: :boolean, default: false
+ settings.attribute :announcement, type: :text, translated: true, editor: true
end
feature.register_resource do |resource|
resource.model_class_name = "Decidim::Debates::Debate"
end