Add rails3_before_render

To support https://github.com/theforeman/foreman/pull/952