Skip to content

akbari10352/trailblazer-scaffold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

trailblazer_scaffold

Trailblazer Scaffold will generate the contracts and operations based on the model and base actions(create update destroy).

In contract you will have all the propeties expect(id, created_at and updated_at).

Also below validations will be added

  1. Presence

  2. Type

    • integer
    • float
    • boolean

First step

gem install trailblazer_scaffold

Second step

make sure you have the actions in your related Controller

Last step

run rails g trailblazer_scaffold:generate {class_name}

example : rails g trailblazer_scaffold:generate Shop::Product

Make sure that you enter the full class name include the parent classes, for models/shop/product.rb use Shop::Product

About

Trailblazer Scaffold

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages