lib/omniauth/strategies/gitlab.rb in omniauth-gitlab-0.0.2 vs lib/omniauth/strategies/gitlab.rb in omniauth-gitlab-0.0.3

- old
+ new

@@ -51,11 +51,14 @@ resp = conn.post do |req| req.url '/api/v3/session' req.headers['Content-Type'] = 'application/json' req.params = { :email => request['email'], :password => request['password'] } end - resp.success? ? MultiJson.load(resp.body) : nil + resp.success? ? MultiJson.decode(resp.body) : nil end end end end -end +end + + +OmniAuth.config.add_camelization 'gitlab', 'GitLab' \ No newline at end of file