Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History

scaffolding

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Scaffolding

Generates a new model class and its associated:

  • migration
  • resource
  • decorator (todo)
  • service (todo)
  • repository (todo)
  • resource spec (todo)
  • decorator spec (todo)
  • service spec (todo)
  • repository spec (todo)

Usage

Set MODEL_CLASS_FULL_NAME to the full name of the class, and run:

bundle exec ruby scaffolding/run.rb

Note that the class name must be in the format X::Y::Z (a class nested inside two modules).