bullet-train-pro / bullet_train-action_models

Other
5 stars 1 forks source link

Find API version dynamically when scaffolding action routes #100

Closed gazayas closed 7 months ago

gazayas commented 8 months ago

Fixes #99.

To test, I scaffolded the Project model as per the documentation:

rails generate super_scaffold Project Team name:text_field
rails generate super_scaffold:action_models:targets_many Archive Project Team

Here is the git status with this branch where you can see that the correct routes file is being updated.

Screenshot from 2024-03-05 15-56-39

We shouldn't need anything else besides the changes I have here, but it might help us to incorporate a test for the bump version task.

jagthedrummer commented 7 months ago

Thanks, @gazayas! I just released this in version 1.2.16