app/models/decidim/meetings/agenda_item.rb in decidim-meetings-0.23.6 vs app/models/decidim/meetings/agenda_item.rb in decidim-meetings-0.24.0.rc1

- old
+ new

@@ -12,10 +12,10 @@ translatable_fields :title, :description belongs_to :agenda, -> { order(:position) }, foreign_key: "decidim_agenda_id", class_name: "Decidim::Meetings::Agenda" has_many :agenda_item_children, foreign_key: "parent_id", class_name: "Decidim::Meetings::AgendaItem", inverse_of: :parent, dependent: :destroy - belongs_to :parent, foreign_key: "parent_id", class_name: "Decidim::Meetings::AgendaItem", inverse_of: :agenda_item_children, optional: true + belongs_to :parent, class_name: "Decidim::Meetings::AgendaItem", inverse_of: :agenda_item_children, optional: true default_scope { order(:position) } def self.first_class where(parent_id: nil)