rails-plug icon indicating copy to clipboard operation
rails-plug copied to clipboard

An Elixir plug to make your application performance more in line with Rails.

Rails

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.