teleological / redmine_stealth

Sometimes sneaky is good. This plugin works like a mute button for Redmine notification emails.
http://teleological.github.com/redmine_stealth
GNU General Public License v2.0
31 stars 35 forks source link

Can't convert nil into string : init.rb row 24 Redmine 2.3.1 #27

Open patfrat opened 11 years ago

patfrat commented 11 years ago

Hello, I used this plugin on a redmine v2.3.0 and after a light upgrade in v2.3.1, this issue appears. Can(t convert nil into string on init.rb(24)

I have just changed the code to this to get it to work !

#plugin_locale_glob = respond_to?(:directory) ?
#    File.join(directory, 'config', 'locales', '*.yml') :
plugin_locale_glob = File.join(Rails.root, 'vendor', 'plugins', 'redmine_stealth', 'config', 'locales', '*.yml')

And everything is ok now !

snwfog commented 11 years ago

I'm getting this issue as well. The former path is for Rails 3, while the latter is for Rails > 2 I believe.

lejek commented 10 years ago

Fix works also in redmine 2.4.2.

fmms commented 10 years ago

I can confirm this bug and the fix.

flarramendi commented 9 years ago

Fix works in redmine 2.5.1. Thanks !