Permalink
Browse files

Merge pull request #108 from gderosa/develop

fix "UTF_7 is not a class" and similar errors
  • Loading branch information...
2 parents 19418cc + b6681d0 commit 68ae7986239b080c9f8afb135ec8089acb5923a1 @steveklabnik steveklabnik committed Jun 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/shoes.rb
View
2 lib/shoes.rb
@@ -8,7 +8,7 @@
class Encoding
%w[UTF_7 UTF_16BE UTF_16LE UTF_32BE UTF_32LE].each do |enc|
- eval "class #{enc};end"
+ eval "class #{enc};end" unless const_defined? enc.to_sym
end
end

0 comments on commit 68ae798

Please sign in to comment.