move the to_prepare block from the old plugin init.rb to the railtie