Skip to content

Instantly share code, notes, and snippets.

@apraditya
Created April 8, 2016 02:22
Show Gist options
  • Save apraditya/4fab9a80de7094f74d0931bbf2c61c8e to your computer and use it in GitHub Desktop.
Save apraditya/4fab9a80de7094f74d0931bbf2c61c8e to your computer and use it in GitHub Desktop.
{
"app/lib/publishers/*.rb": {
"command": "publisher",
"template": "class %S\nend"
},
"app/lib/listeners/*.rb": {
"command": "listener",
"template": "class %S\nend"
},
"app/resources/*_resource.rb": {
"command": "resource",
"related": "app/controllers/%p_controller.rb",
"template": "class %SResource < JSONAPI::Resource\nend",
"test": "spec/resources/%p_resource_spec.rb"
},
"app/workers/*_worker.rb": {
"command": "worker",
"template": "class %Sworker < ActiveJob::Base\nend"
},
"app/controllers/api/*_controller.rb": {
"related": "app/resources/api/%i_resource.rb"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment