lib/omniauth/strategies/mendeley.rb in omniauth-mendeley-0.2 vs lib/omniauth/strategies/mendeley.rb in omniauth-mendeley-0.3
- old
+ new
@@ -17,10 +17,10 @@
uid do
user_data['profile_id']
end
info do
- user_data.delete_if { |k, v| v.nil? || v.length == 0 }
+ user_data.delete_if { |k, v| v.nil? || v.to_s.length == 0 }
end
extra do
user_data
end