module

Rails::Generators::ModelHelpers

v7.1.3.2 - Show latest stable

No documentation available for this module.

Constants

INFLECTION_IMPOSSIBLE_ERROR_MESSAGE = <<~ERROR

IRREGULAR_MODEL_NAME_WARN_MESSAGE = <<~WARNING

PLURAL_MODEL_NAME_WARN_MESSAGE = "[WARNING] The model name '%s' was recognized as a plural, using the singular '%s' instead. " \\\n"Override with --force-plural or setup custom inflection rules for this noun before running the generator."

Files

  • railties/lib/rails/generators/model_helpers.rb