mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-09 15:18:11 -05:00
Fix deprecation warnings for rails 6.1
This commit is contained in:
@@ -15,8 +15,8 @@ module Diaspora
|
||||
|
||||
# tag's name is limited to 255 charchters according to ActsAsTaggableOn gem, so we check the length of the name for each tag
|
||||
def tag_name_max_length
|
||||
self.tag_list.each do |tag|
|
||||
errors[:tags] << I18n.t('tags.name_too_long', :count => 255, :current_length => tag.length) if tag.length > 255
|
||||
tag_list.each do |tag|
|
||||
errors.add(:tags, I18n.t("tags.name_too_long", count: 255, current_length: tag.length)) if tag.length > 255
|
||||
end
|
||||
end
|
||||
protected :tag_name_max_length
|
||||
|
||||
Reference in New Issue
Block a user