-
-
Notifications
You must be signed in to change notification settings - Fork 383
Projection Recipes
Jonathan Allard edited this page Jan 19, 2016
·
6 revisions
Find here some common projection recipes for gems. For more information on how
to use them, consult :help rails-projections
.
\ "activeadmin": {
\ "app/admin/*.rb": {
\ "command": "admin",
\ "affinity": "model",
\ "alternate": "app/models/{}.rb",
\ "template": "ActiveAdmin.register {} do\nend"}}}
\ "fabrication": {
\ "spec/fabricators/*_fabricator.rb": {
\ "command": "fabricator",
\ "affinity": "model",
\ "alternate": "app/models/{}.rb",
\ "related": "db/schema.rb#{plural}",
\ "test": "spec/models/{}_spec.rb",
\ "template": "Fabricator :{} do\nend"}}