Add admin interface for the links

This commit is contained in:
Patrick Gansterer 2019-11-04 03:52:07 +01:00
parent 7657b05787
commit 1053b3883d
11 changed files with 142 additions and 0 deletions

View file

@ -1,5 +1,7 @@
class Link < ApplicationRecord
belongs_to :workgroup
validates_presence_of :name, :url
scope :ordered, -> { order(:name) }
end