Sha256: 0f23040ded001b38c3ec000f136f5c030e065d5aa706524d04aa89167e3454c1

Contents?: true

Size: 419 Bytes

Versions: 16

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Plans
    # A plan can accept requests to coauthor and contribute
    class PlanCollaboratorRequest < Plans::ApplicationRecord
      validates :plan, :user, presence: true

      belongs_to :plan, class_name: "Decidim::Plans::Plan", foreign_key: :decidim_plan_id
      belongs_to :user, class_name: "Decidim::User", foreign_key: :decidim_user_id
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
decidim-plans-0.18.2 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.18.1 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.18.0 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.17.0 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.16.9 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.16.8 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.16.7 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.16.6 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.16.5 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.16.4 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.16.3 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.16.2 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.16.1 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.16.0 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.15.1 app/models/decidim/plans/plan_collaborator_request.rb
decidim-plans-0.15.0 app/models/decidim/plans/plan_collaborator_request.rb