Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rewrited for new 1.9 .to_a functionallity

  • Loading branch information...
commit 808109e935bbda9b4dbafcef5bb5dbebde38ffbe 1 parent 6b1048a
@hermesdt authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.