Added config.to_prepare for orders controller override for Rails 3, 4 support.