Skip to content

Add custom inflections for acronyms used in model names #37

Open
@postmodern

Description

@postmodern

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"

Metadata

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