mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 12:40:40 +08:00
fecf3e20d9
* FEATURE: Do not delete invite if link was copied * FIX: Show error to user if invite redeeming fails The error was only displayed to console. * UX: Better placement of bulk buttons Destroy all expired invites should be on the expired tab, not pending. * FIX: Ensure invited_groups is unique per invite and group * FIX: Do not refresh topic list if title unchanged * FIX: Do not close modal on enter This intereferes with the group and topic chooser. Wrapping everything in a form disables this behavior. * FIX: Move link and email options outside advanced section * FIX: Do not close modal if saving a link invite User may still want to copy the link.
22 lines
451 B
Ruby
22 lines
451 B
Ruby
# frozen_string_literal: true
|
|
|
|
class InvitedGroup < ActiveRecord::Base
|
|
belongs_to :group
|
|
belongs_to :invite
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: invited_groups
|
|
#
|
|
# id :integer not null, primary key
|
|
# group_id :integer
|
|
# invite_id :integer
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_invited_groups_on_group_id_and_invite_id (group_id,invite_id) UNIQUE
|
|
#
|