twinslash / redmine_omniauth_google

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

Add backward compatibility code for :email_addresses #33

Open s-andy opened 8 years ago

s-andy commented 8 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 under 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.