app/controllers/avo/relations_controller.rb in avo-1.7.3 vs app/controllers/avo/relations_controller.rb in avo-1.8.0

- old
+ new

@@ -13,10 +13,10 @@ before_action :set_reflection, only: [:index] def index @parent_resource = @resource.dup @resource = @related_resource - @parent_model = @parent_resource.model_class.find(params[:id]) + @parent_model = @parent_resource.class.find_scope.find(params[:id]) @parent_resource.hydrate(model: @parent_model) @query = @authorization.apply_policy @parent_model.public_send(params[:related_name]) super end