RubyClickAP / clipboard_image_paste

for Redmine 4.0.x
0 stars 2 forks source link

undefined method `to_prepare' for ActionDispatch::Reloader:Class (Redmine 4.0 / Rails 5) #1

Open Dmitry-Gal opened 5 years ago

Dmitry-Gal commented 5 years ago

Unable to run DB migrations after upgrading to Redmine 4.0.3.stable, which uses Rails 5.2.2.1

$ bundle exec rake redmine:plugins:migrate RAILS_ENV="production" rake aborted! NoMethodError: undefined method to_prepare' for ActionDispatch::Callbacks:Class Did you mean? to_param /var/www/redmine/plugins/clipboard_image_paste/init.rb:32:in<top (required)>' /var/www/redmine/lib/redmine/plugin.rb:175:in block in load' /var/www/redmine/lib/redmine/plugin.rb:166:ineach' /var/www/redmine/lib/redmine/plugin.rb:166:in load' /var/www/redmine/config/initializers/30-redmine.rb:21:in<top (required)>' /var/www/redmine/config/environment.rb:14:in <top (required)>' /usr/local/rbenv/versions/2.3.5/bin/bundle:23:inload' /usr/local/rbenv/versions/2.3.5/bin/bundle:23:in `

' Tasks: TOP => redmine:plugins:migrate => environment (See full trace by running task with --trace)

Dmitry-Gal commented 5 years ago

I have one more plugin - redmine_lightbox2 with the same method - to_prepare and it works "from the box" without any errors.