Use the more succinct style of railtie initializer

By accepting a block, you can use the `app` block argument to access the middleware collection without needing to reference the `Rails` global.

Ultimately, this is just saving a few characters though.