Declare Acronyms in Rails Inflections

A lot of Rails’s naming magic comes from its clever use of inflections. user.rb defines the User class, backed by the users table, managed by UsersController , accessible at the /users/ routes. Every Rails app generates config/initializers/inflections.rb to let you customise this behaviour. Most developers leave it empty. Then one day you namespace a controller under API and Rails starts…