Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit ee9b480ee668f7eee7de200769aae52245331996 2 parents e9e908e + 5420b6c
@mikel authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/mail/version_specific/ruby_1_9.rb
View
6 lib/mail/version_specific/ruby_1_9.rb
@@ -27,7 +27,7 @@ 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)
@@ -35,11 +35,11 @@ def Ruby19.encode_base64(str)
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)
Please sign in to comment.
Something went wrong with that request. Please try again.