Sha256: 7f71db47b36e5fad2c338f71f249ea42b4dbbe255603362c5dad3f0f1708e1cf

Contents?: true

Size: 571 Bytes

Versions: 38

Compression:

Stored size: 571 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Elections
    # The data store for an Election Closure.
    class BulletinBoardClosure < ApplicationRecord
      belongs_to :election,
                 foreign_key: "decidim_elections_election_id",
                 class_name: "Decidim::Elections::Election",
                 inverse_of: :bb_closure

      has_many :results,
               foreign_type: "closurable_type",
               class_name: "Decidim::Elections::Result",
               dependent: :destroy,
               as: :closurable
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
decidim-elections-0.28.4 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.27.9 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.28.3 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.27.8 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.28.2 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.27.7 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.28.1 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.27.6 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.26.10 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.26.9 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.28.0 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.27.5 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.28.0.rc5 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.28.0.rc4 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.26.8 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.27.4 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.27.3 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.26.7 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.26.5 app/models/decidim/elections/bulletin_board_closure.rb
decidim-elections-0.27.2 app/models/decidim/elections/bulletin_board_closure.rb