Skip to content

Commit

Permalink
Prefer each_value
Browse files Browse the repository at this point in the history
  • Loading branch information
egglestn committed Dec 17, 2024
1 parent ec4a8ac commit a26344f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/speaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def format_links
end

def url_exists?
links.each { |_, url| errors.add(:links, 'This url is not valid') unless url_valid?(url) }
links.each_value { |url| errors.add(:links, 'This url is not valid') unless url_valid?(url) }
end

def empty_links?
Expand Down

0 comments on commit a26344f

Please sign in to comment.