superadmin can get procedures from zone

This commit is contained in:
Christophe Robillard 2021-12-18 17:28:49 +01:00
parent 537e6066d8
commit c7b5e57d2a

View file

@ -10,4 +10,5 @@
# #
class Zone < ApplicationRecord class Zone < ApplicationRecord
validates :acronym, presence: true, uniqueness: true validates :acronym, presence: true, uniqueness: true
has_many :procedures, -> { order(published_at: :desc) }, inverse_of: :zone
end end