Skip to content

Commit

Permalink
Fixed belongs_to field type
Browse files Browse the repository at this point in the history
  • Loading branch information
narrowtux committed May 15, 2017
1 parent 8efa0f7 commit e22cba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/version.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule PaperTrail.Version do
field :meta, :map

if @setter do
belongs_to @setter[:name], @setter[:model], define_field: false, foreign_key: :originator_id
belongs_to @setter[:name], @setter[:model], define_field: false, foreign_key: :originator_id, type: @originator_type
end

timestamps(updated_at: false)
Expand Down

0 comments on commit e22cba9

Please sign in to comment.