Permalink
Browse files

Merge branch 'master' of https://github.com/nobu/mail into nobu-master

  • Loading branch information...
mikel committed Apr 16, 2011
2 parents e9e908e + 5420b6c commit ee9b480ee668f7eee7de200769aae52245331996
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/mail/version_specific/ruby_1_9.rb
@@ -27,19 +27,19 @@ def Ruby19.bracket( str )
end
def Ruby19.decode_base64(str)
- str.unpack( 'm' ).first.force_encoding(Encoding::BINARY)
+ str.unpack( 'm' ).first
end
def Ruby19.encode_base64(str)
[str].pack( 'm' )
end
def Ruby19.has_constant?(klass, string)
- klass.constants.include?( string.to_sym )
+ klass.const_defined?( string, false )
end
def Ruby19.get_constant(klass, string)
- klass.const_get( string.to_sym )
+ klass.const_get( string )
end
def Ruby19.b_value_encode(str, encoding = nil)

0 comments on commit ee9b480

Please sign in to comment.