Skip to content
  • Abhay Nikam's avatar
    b9879bb8
    The abstract parent class file generated via generator should not be pluralized · b9879bb8
    Abhay Nikam authored
    Currently, the file generated via the generator is pluralized
    but the parent class is singluar.
    
    example: bundle exec rails g scaffold Pet name:string --database=animals
    
    The above command should generate: apps/models/animals_record.rb
    
    but the pets model would inherit from: `AnimalRecord` as
    `"animals".classify` would be `Animal`
    
    This will throw the `uninitialized constant AnimalRecord Did you mean? AnimalsRecord`
    error.
    b9879bb8
    The abstract parent class file generated via generator should not be pluralized
    Abhay Nikam authored
    Currently, the file generated via the generator is pluralized
    but the parent class is singluar.
    
    example: bundle exec rails g scaffold Pet name:string --database=animals
    
    The above command should generate: apps/models/animals_record.rb
    
    but the pets model would inherit from: `AnimalRecord` as
    `"animals".classify` would be `Animal`
    
    This will throw the `uninitialized constant AnimalRecord Did you mean? AnimalsRecord`
    error.
Loading