Skip to content

Commit

Permalink
fix tags:each for Ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jsntv200 committed Jan 31, 2012
1 parent cb4b50d commit ada09d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/radius_tags.rb
Expand Up @@ -179,7 +179,7 @@ class TagError < StandardError; end
if tag.attr['limit'] if tag.attr['limit']
selected_tags = selected_tags.first(tag.attr['limit'].to_i) selected_tags = selected_tags.first(tag.attr['limit'].to_i)
end 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.meta_tag = meta_tag
tag.locals.is_first_meta_tag = index == 0 tag.locals.is_first_meta_tag = index == 0
tag.locals.is_last_meta_tag = index == selected_tags.length - 1 tag.locals.is_last_meta_tag = index == selected_tags.length - 1
Expand Down

0 comments on commit ada09d3

Please sign in to comment.