We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32b6206 commit 3129e96Copy full SHA for 3129e96
app/serializers/forest_liana/serializer_factory.rb
@@ -127,8 +127,8 @@ def relationship_related_link(attribute_name)
127
ret[:href] = "/forest/#{ForestLiana.name_for(object.class)}/#{object.id}/relationships/#{attribute_name}"
128
end
129
130
- rescue TypeError, ActiveRecord::StatementInvalid, NoMethodError
131
- puts "Cannot load the association #{attribute_name} on #{object.class.name} #{object.id}."
+ rescue TypeError, ActiveRecord::StatementInvalid, NoMethodError => exception
+ FOREST_LOGGER.warn "Cannot load the association #{attribute_name} on #{object.class.name} #{object.id}.\n#{exception&.backtrace&.join("\n\t")}"
132
133
134
0 commit comments