lib/decidim/accountability/component.rb in decidim-accountability-0.28.4 vs lib/decidim/accountability/component.rb in decidim-accountability-0.29.0.rc1
- old
+ new
@@ -28,13 +28,9 @@
settings.attribute :scopes_enabled, type: :boolean, default: true
settings.attribute :scope_id, type: :scope
settings.attribute :comments_enabled, type: :boolean, default: true
settings.attribute :comments_max_length, type: :integer, required: true
settings.attribute :intro, type: :text, translated: true, editor: true
- settings.attribute :categories_label, type: :string, translated: true, editor: true
- settings.attribute :subcategories_label, type: :string, translated: true, editor: true
- settings.attribute :heading_parent_level_results, type: :string, translated: true, editor: true
- settings.attribute :heading_leaf_level_results, type: :string, translated: true, editor: true
settings.attribute :display_progress_enabled, type: :boolean, default: true
end
component.register_stat :results_count, primary: true, priority: Decidim::StatsRegistry::HIGH_PRIORITY do |components, _start_at, _end_at|
Decidim::Accountability::Result.where(component: components).count