Skip to content

Commit

Permalink
Fix card image validation
Browse files Browse the repository at this point in the history
  • Loading branch information
laurajaime committed Mar 25, 2024
1 parent cc12cde commit e974c38
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/forms/decidim/challenges/admin/challenges_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ class ChallengesForm < Decidim::Form

validates :card_image,
presence: false,
passthru: { to: Decidim::Challenges::Challenge,
with: lambda { |form|
{ component: form.current_component }
} }
passthru: { to: Decidim::Attachment }

alias organization current_organization

Expand Down

0 comments on commit e974c38

Please sign in to comment.