Created
September 12, 2014 15:15
-
-
Save emilioeduardob/08d249b0c26461e9674d to your computer and use it in GitHub Desktop.
My custom projections
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:rails_projections = { | |
\ "config/projections.json": { | |
\ "command": "projections" | |
\ }, | |
\ "app/services/*.rb": { | |
\ "command": "service", | |
\ "affinity": "model", | |
\ "test": "spec/services/%s_spec.rb", | |
\ "related": "app/models/%s.rb", | |
\ "template": "class %S\n\n def run\n end\nend" | |
\ }, | |
\ "app/admin/*.rb": { | |
\ "command": "admin", | |
\ "affinity": "model", | |
\ "related": "app/models/%s.rb", | |
\ "template": | |
\ "ActiveAdmin.register %S do\n\n # form do\n # end\n\n #menu parent: '', label: ''\n\n # index do\n # end\n\nend\n" | |
\ }, | |
\ "test/factories/*.rb": { | |
\ "command": "factory", | |
\ "affinity": "collection", | |
\ "alternate": "app/models/%i.rb", | |
\ "related": "db/schema.rb#%s", | |
\ "test": "test/models/%i_test.rb", | |
\ "template": "FactoryGirl.define do\n factory :%i do\n end\nend", | |
\ "keywords": "factory sequence" | |
\ }, | |
\ "spec/factories/*.rb": { | |
\ "command": "factory", | |
\ "affinity": "collection", | |
\ "alternate": "app/models/%i.rb", | |
\ "related": "db/schema.rb#%s", | |
\ "test": "spec/models/%i_test.rb", | |
\ "template": "FactoryGirl.define do\n factory :%i do\n end\nend", | |
\ "keywords": "factory sequence" | |
\ }, | |
\ "app/serializers/*_serializer.rb": { | |
\ "command": "serializer", | |
\ "affinity": "model", | |
\ "related": "app/models/%s.rb", | |
\ "template": "class %SSerializer < ActiveModel::Serializer\nend" | |
\ }, | |
\ "config/*.rb": { "command": "config" }, | |
\ "spec/support/*.rb": {"command": "support"}, | |
\ "spec/features/*_spec.rb": { | |
\ "command": "feature", | |
\ "template": "require 'spec_helper'\n\nfeature '%h' do\n\nend", | |
\ }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment