Skip to content

Commit

Permalink
Remove unused changeset function
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuprog committed May 25, 2024
1 parent 529a0e9 commit 6d3561a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/support/models/polymorphic/reminder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,4 @@ defmodule PolymorphicEmbed.Reminder do
)
|> validate_required(:date)
end

def custom_changeset3(struct, values) do
struct
|> cast(values, [:date, :text])
|> cast_polymorphic_embed(:channel,
with: [
sms: &PolymorphicEmbed.Channel.SMS.custom_changeset/2
]
)
|> validate_required(:date)
end
end

0 comments on commit 6d3561a

Please sign in to comment.