Skip to content

Commit

Permalink
to_param
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Nov 14, 2024
1 parent 6652213 commit c611b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/avo/fields/belongs_to_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def values_for_type(model = nil)
end

query.all.map do |record|
[resource.new(record: record).record_title, primary_key.present? ? record.send(primary_key) : record.id]
[resource.new(record: record).record_title, primary_key.present? ? record.send(primary_key) : record.to_param]
end
end

Expand Down

0 comments on commit c611b7d

Please sign in to comment.