TeamRocketScience / redmine_due_date_by_default

Automatically sets due date of the issue based on the date of the target version
http://trs.io
2 stars 2 forks source link

Compatible with Redmine 2.x #2

Open logical-and opened 12 years ago

logical-and commented 12 years ago

Add, please, Redmine 2 compatibility.

Error occured:

/var/www/redmine/plugins/redmine_due_date_by_default/init.rb:5:in `': undefined method `to_prepare' for Dispatcher:Module (NoMethodError)
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `block in require'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:236:in `load_dependency'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require'
        from /var/www/redmine/lib/redmine/plugin.rb:129:in `block in load'
        from /var/www/redmine/lib/redmine/plugin.rb:120:in `each'
        from /var/www/redmine/lib/redmine/plugin.rb:120:in `load'
        from /var/www/redmine/config/initializers/30-redmine.rb:13:in `'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:245:in `load'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:245:in `block in load'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:236:in `load_dependency'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:245:in `load'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/engine.rb:588:in `block (2 levels) in '
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/engine.rb:587:in `each'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/engine.rb:587:in `block in '
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/initializable.rb:30:in `instance_exec'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/initializable.rb:30:in `run'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/initializable.rb:55:in `block in run_initializers'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/initializable.rb:54:in `each'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/initializable.rb:54:in `run_initializers'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/application.rb:136:in `initialize!'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/railtie/configurable.rb:30:in `method_missing'
        from /var/www/redmine/config/environment.rb:18:in `'
        from /var/www/redmine/config.ru:4:in `require'
        from /var/www/redmine/config.ru:4:in `block in 
' from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval' from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize' from /var/www/redmine/config.ru:1:in `new' from /var/www/redmine/config.ru:1:in `
' from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval' from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file' from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.1/lib/rack/server.rb:200:in `app' from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/commands/server.rb:46:in `app' from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app' from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.1/lib/rack/server.rb:252:in `start' from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/commands/server.rb:70:in `start' from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/commands.rb:55:in `block in ' from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/commands.rb:50:in `tap' from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/commands.rb:50:in `' from ../script/rails:6:in `require' from ../script/rails:6:in `
'
Shaikh-Farooque commented 11 years ago

Yes please add this..... PLEASE !!!!