twinslash / redmine_omniauth_google

This plugin is used to authenticate in redmine through Google.
http://www.redmine.org/plugins/redmine_omniauth_google
94 stars 103 forks source link

Add backward compatibility code for :email_addresses #32

Closed s-andy closed 7 years ago

s-andy commented 7 years ago

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.

s-andy commented 7 years ago

Created a dedicated branch and another PR for this change.