Copy or Import GeneralCopies to Local
To copy / import generaly copies locally
- Visit https://www.powr.io/general_copies.json
- Copy and paste the content into your local machine at: lib/general_copies.json
- Run: rake utility:json_to_general_copies
Keywords: general_copies general copies generalCopies
Updates, at will​
Some general copies have the old convention names, e.g. formBuilder instead of form_builder. If you definitely want to have the same general copies as on prod, you have to do:
- before running rake utility:json_to_general_copies
- open GeneralCopy model
- comment out this line of validations: validates :name, format: { with: /\A[a-z0-9_]+\z/ }
- run: rake utility:json_to_general_copies
- don't forget to uncomment it