I have two models:
class ActiveTour < ApplicationRecord
...
rails_admin do
edit do
field :tour_hotels do
eager_load true
end
end
end
...
class TourHotel < ApplicationRecord
..
rails_admin do
edit do
field :hotel do
eager_load true
end
end
end
...
end
When I access http://localhost:3000/admin/active_tour/4/edit I get the bullet warning saying: USE eager loading detected TourHotel => [:hotel] Add to your finder: :includes => [:hotel]
How can I fix this?
I have two models:
When I access
http://localhost:3000/admin/active_tour/4/editI get thebulletwarning saying: USE eager loading detected TourHotel => [:hotel] Add to your finder: :includes => [:hotel]How can I fix this?