diff --git a/app/models/radius_tags.rb b/app/models/radius_tags.rb index 22fdecf..fbd1c62 100644 --- a/app/models/radius_tags.rb +++ b/app/models/radius_tags.rb @@ -179,7 +179,7 @@ class TagError < StandardError; end if tag.attr['limit'] selected_tags = selected_tags.first(tag.attr['limit'].to_i) end - selected_tags.enum_with_index.collect do |meta_tag, index| + selected_tags.each_with_index.collect do |meta_tag, index| tag.locals.meta_tag = meta_tag tag.locals.is_first_meta_tag = index == 0 tag.locals.is_last_meta_tag = index == selected_tags.length - 1