Redmine in Debian stable does not support multiple email addresses yet. So, to support Debian stable's version of Redmine the plugin needs to check if the :email_addresses association is available for User.
The changes is made in the way, so the plugin will work on both versions of Redmine - on old Debian stable's one (2.5.2.devel, which is almost 3.0) and new 3.x ones. I.e. the style of the fix resembles https://github.com/twinslash/redmine_omniauth_google/pull/14.
Redmine in Debian stable does not support multiple email addresses yet. So, to support Debian stable's version of Redmine the plugin needs to check if the
:email_addresses
association is available for User.The changes is made in the way, so the plugin will work on both versions of Redmine - on old Debian stable's one (2.5.2.devel, which is almost 3.0) and new 3.x ones. I.e. the style of the fix resembles https://github.com/twinslash/redmine_omniauth_google/pull/14.