Skip to content
Browse files

Rewrited for new 1.9 .to_a functionallity

  • Loading branch information...
1 parent 6b1048a commit 808109e935bbda9b4dbafcef5bb5dbebde38ffbe @hermesdt committed Jan 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/tolk/translation.rb
View
2 app/models/tolk/translation.rb
@@ -110,7 +110,7 @@ def check_matching_variables
if primary_translation.variables.empty?
self.errors.add(:text, "The original does not contain variables, so they should not be included.")
else
- self.errors.add(:text, "The translation should contain the variables #{primary_translation.to_a.to_sentence}.")
+ self.errors.add(:text, "The translation should contain the variables #{primary_translation.variables.to_a.to_sentence}.")
end
end
end

0 comments on commit 808109e

Please sign in to comment.
Something went wrong with that request. Please try again.