Add keywords and domains editor
This commit is contained in:
parent
bbfc5a0d88
commit
c9a72a49e3
9 changed files with 514 additions and 4 deletions
|
@ -13,4 +13,10 @@
|
|||
#
|
||||
class AntennaDomain < ApplicationRecord
|
||||
belongs_to :antenna
|
||||
|
||||
validate :same_domain
|
||||
|
||||
def same_domain
|
||||
raise Mastodon::ValidationError, I18n.t('antennas.errors.same_domain') if AntennaDomain.exists?(antenna_id: antenna_id, name: name, exclude: exclude)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue