Skip to content

Add custom inflections for acronyms used in model names #37

Open
@postmodern

Description

Since certain model names contain acronyms, we must configure ActiveSupport::Inflector to preserve them as acronyms instead of converting them to CamelCase when converting the model name into a human readable name:

  • Wrong: IPAddress.model_name.human # => "Ip address"
  • Correct: IPAddress.model_name.human # => "IP address"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions