first fix for plugins and Rails 4