From fc83d0c9ae2abe68ec2681c7abad7c2c7c1829ad Mon Sep 17 00:00:00 2001 From: salimhb Date: Mon, 26 Apr 2021 09:41:42 +0300 Subject: [PATCH] checkin_link is readonly editing it results in errors --- app/models/concerns/rails_admin_config/for_area.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/models/concerns/rails_admin_config/for_area.rb b/app/models/concerns/rails_admin_config/for_area.rb index 0f23d81..09bd97c 100644 --- a/app/models/concerns/rails_admin_config/for_area.rb +++ b/app/models/concerns/rails_admin_config/for_area.rb @@ -4,9 +4,11 @@ module ForArea included do rails_admin do - configure :checkin_link do + fields :name, :id, :company, :tickets + + field :checkin_link do + read_only true end - fields :name, :id, :company, :tickets, :checkin_link end end end