Update controller_extensions.rb

Make it work with a Rails engine!