Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize rails skeletons / templates #164

Open
fmichaut-diff opened this issue Apr 9, 2023 · 0 comments
Open

Customize rails skeletons / templates #164

fmichaut-diff opened this issue Apr 9, 2023 · 0 comments

Comments

@fmichaut-diff
Copy link

fmichaut-diff commented Apr 9, 2023

Currently when I open a new file under app/jobs/foo/bar.rb, the following skeleton gets generated :

class Foo::Bar < ApplicationJob

end

I would like to be able to customize the template myself, for instance to have something like this :

# frozen_string_literal: true

module Foo
  class Bar < ApplicationJob
  end
end

I am using snippet-mode on Emacs, but I do not see the projectile-rails templates listed there, and the only reference I found or a job template was in projectile-rails.el:1057 , so not likely customizable.

Could it be possible to move the templates as regular templates files that could be overwritten by custom ones ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant