Rails

March 26, 2017 ยท View on GitHub

A plug to make your Elixir/Phoenix applications performance more in line with Rails.

Installation

Add the following to your mix.exs:

{:rails, "~> 4.2"}

Usage

We suggest adding the following to your pipelines in router.ex, but you can also include this in individual controllers.

plug Rails

You can include Rails several times for more precision. eg:

plug Rails
plug Rails
plug Rails
plug Rails

Disclaimer

I still love Rails and Ruby. This is just me poking fun at a real issue that Ruby and by extension, Rails has.