Update action_view_extension.rb

Fix for my specific usecase and mongoid 4