Sha256: 4e67a46ea7c57bf4a2170f4e14d2e37c026a54290238ad81b83d71f4312b7b24

Contents?: true

Size: 758 Bytes

Versions: 24

Compression:

Stored size: 758 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    # The data store for a Meeting in the Decidim::Meetings component. It stores a
    # title, description and any other useful information to render a custom meeting.
    class Meeting < Meetings::ApplicationRecord
      include Decidim::Resourceable
      include Decidim::HasAttachments
      include Decidim::HasFeature
      include Decidim::HasReference
      include Decidim::HasScope
      include Decidim::HasCategory

      feature_manifest_name "meetings"

      validates :title, presence: true

      geocoded_by :address, http_headers: ->(proposal) { { "Referer" => proposal.feature.organization.host } }

      def closed?
        closed_at.present?
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
decidim-meetings-0.5.1 app/models/decidim/meetings/meeting.rb
decidim-0.5.1 decidim-meetings/app/models/decidim/meetings/meeting.rb
decidim-meetings-0.5.0 app/models/decidim/meetings/meeting.rb
decidim-0.5.0 decidim-meetings/app/models/decidim/meetings/meeting.rb
decidim-meetings-0.4.4 app/models/decidim/meetings/meeting.rb
decidim-0.4.4 decidim-meetings/app/models/decidim/meetings/meeting.rb
decidim-meetings-0.4.3 app/models/decidim/meetings/meeting.rb
decidim-meetings-0.4.2 app/models/decidim/meetings/meeting.rb
decidim-meetings-0.4.1 app/models/decidim/meetings/meeting.rb
decidim-0.4.3 decidim-meetings/app/models/decidim/meetings/meeting.rb
decidim-0.4.2 decidim-meetings/app/models/decidim/meetings/meeting.rb
decidim-0.4.1 decidim-meetings/app/models/decidim/meetings/meeting.rb
decidim-meetings-0.4.0 app/models/decidim/meetings/meeting.rb
decidim-0.4.0 decidim-meetings/app/models/decidim/meetings/meeting.rb
decidim-meetings-0.3.2 app/models/decidim/meetings/meeting.rb
decidim-0.3.2 decidim-meetings/app/models/decidim/meetings/meeting.rb
decidim-meetings-0.3.1 app/models/decidim/meetings/meeting.rb
decidim-0.3.1 decidim-meetings/app/models/decidim/meetings/meeting.rb
decidim-meetings-0.3.0 app/models/decidim/meetings/meeting.rb
decidim-0.3.0 decidim-meetings/app/models/decidim/meetings/meeting.rb