Permalink
Browse files

Merge pull request #27 from jsntv200/master

Update tags:each for Ruby 1.9
  • Loading branch information...
2 parents cb4b50d + ada09d3 commit 0ceb6866b68cab1b56f614ce27ecba95e6b1d7c4 @jomz committed Feb 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 0ceb686

Please sign in to comment.