You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, dropping in resource.rb.erb or controller.rb.erb in:
lib/templates/graphiti/resource is not picked up. I've also tried placing them in a templates/ subdir of the above.
I also tried lib/templates/graphiti/controller for some reason. (I didn't expect that to work since the generator that uses these templates is graphiti:resource which maps to ResourceGenerator. But I tried it anyway.)
Am I doing something wrong? Has anyone else successfully used custom resource/controller templates?
The text was updated successfully, but these errors were encountered:
I'm on Rails 7 with latest Graphiti-rails 0.4.0
I can successfully override the api_test templates by placing them in:
lib/templates/graphiti/api_test/{create|show|...}_request_spec.rb.erb
However, dropping in resource.rb.erb or controller.rb.erb in:
lib/templates/graphiti/resource
is not picked up. I've also tried placing them in atemplates/
subdir of the above.I also tried
lib/templates/graphiti/controller
for some reason. (I didn't expect that to work since the generator that uses these templates isgraphiti:resource
which maps toResourceGenerator
. But I tried it anyway.)Am I doing something wrong? Has anyone else successfully used custom resource/controller templates?
The text was updated successfully, but these errors were encountered: