mardi 29 août 2017

migration from rails 3.1 to 3.2 with plugins and fix the deprecation warnings

I am working in a project with Ruby version 1.9.3 and Rails Version 3.1.12. Planning to Migrate the rails Version to 3.2.The issue encountered is with plugins; we have 6 plugins namely,

  • autocomplete
  • filter
  • has_details
  • in_place_editing
  • restful-authentication
  • role_requirement

I was able to upgrade the Gemfile in Dev, But the show stopper found is the plugins, using this doc, http://ift.tt/RTUeAa

I was able to convert the autocomplete to include in the lib/. The main issue is with the others. Rest of them contains some files called

install.rb, Rakefile, templates folders.

is there any way to remove these deprecation warnings, So far, we do not have much test coverage only a low amount.Any Help is appreciated. TIA.

DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://ift.tt/wl0LFP. (called from at /home/rmed176lt/ror/revremit/config/environment.rb:6)

If anybody wants to view the plugin code, Please visit http://ift.tt/2iETJfX

Aucun commentaire:

Enregistrer un commentaire