Sha256: 82e44d5e9493a922729a96faf7480b369161dd52751684686bb3502ed87254a3

Contents?: true

Size: 697 Bytes

Versions: 27

Compression:

Stored size: 697 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    # The data store for a Agena in the Decidim::Meetings component. It stores a
    # title, and visible field to render inside a meeting.
    class Agenda < Meetings::ApplicationRecord
      include Decidim::Traceable
      include Decidim::Loggable

      belongs_to :meeting, foreign_key: "decidim_meeting_id", class_name: "Decidim::Meetings::Meeting"
      has_many :agenda_items, foreign_key: "decidim_agenda_id", class_name: "Decidim::Meetings::AgendaItem", dependent: :destroy, inverse_of: :agenda

      def self.log_presenter_class_for(_log)
        Decidim::Meetings::AdminLog::AgendaPresenter
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
decidim-meetings-0.22.0 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.21.0 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.20.1 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.20.0 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.19.1 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.18.1 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.19.0 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.17.2 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.18.0 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.17.1 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.16.1 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.17.0 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.16.0 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.15.2 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.15.1 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.15.0 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.14.4 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.14.3 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.14.2 app/models/decidim/meetings/agenda.rb
decidim-meetings-0.14.1 app/models/decidim/meetings/agenda.rb