Merge pull request #355 from opf/feature/fix-implicit-type-cast

Add explicit type cast to avoid Ruby 2 type error.
pull/359/head
meeee 11 years ago
commit 91be15902a
  1. 2
      app/models/ldap_auth_source.rb

@ -39,7 +39,7 @@ class LdapAuthSource < AuthSource
ldap_con = initialize_ldap_con(self.account, self.account_password) ldap_con = initialize_ldap_con(self.account, self.account_password)
ldap_con.open { } ldap_con.open { }
rescue Net::LDAP::LdapError => text rescue Net::LDAP::LdapError => text
raise "LdapError: " + text raise "LdapError: " + text.to_s
end end
def auth_method_name def auth_method_name

Loading…
Cancel
Save