Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Provides a centralized repository and easy loading mechanism for irregular inflections in Rails.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 README.txt
= InflectThis



A centralized module for irregular inflections in Rails. Add to the list if you want; comment out any inflections that would interfere with any legacy tables that you might have.

== WHY?

The Rails Core team will not correct any missing singularization/pluralization exceptions, for fear of messing up people's legacy table names. Instead, they recommend adding custom inflections to your environment.rb file. In an attempt to DRY up custom inflections across the community, InflectThis provides a centralized location for collecting these custom inflections.

== NOTE:

This module does not yet check for conflicts with existing tables, models, etc. in your application. Caveat emptor.


* Drop it in your my_project/lib/ folder

* Include it at the top of your application controller: 

  class ApplicationController < ActionController::Base
    include CustomInflectors

* Customize as needed.


If you find additional irregular inflections, fork the repository, add them, and do a pull request.
Something went wrong with that request. Please try again.