Skip to content

Commit fdfd2d6

Browse files
[+] Basic support DelajedJob
1 parent 33f2afd commit fdfd2d6

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

README.rdoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ Basic support:
55
* {CarrierWave}[https://github.com/jnicklas/carrierwave] Uploaders
66
* {Apotomo}[https://github.com/apotonick/apotomo] Cells
77
* {FactoryGirl}[https://github.com/thoughtbot/factory_girl] factories
8+
* {DelayedJob}[https://github.com/collectiveidea/delayed_job]
89

910
== Usage
1011

11-
Rloop - search loops definitions at app/loops
12+
Rloop - search loops definitions at app/loops
1213
Ruploader - search loops definitions at app/uploader
13-
Rcell - search cell definitions at app/cells
14-
Rfactory - search factory definitions at spec/factories
14+
Rcell - search cell definitions at app/cells
15+
Rfactory - search factory definitions at spec/factories
16+
Rjob - search factory definitions at app/jobs
1517

1618
== Installation
1719

autoload/rails.vim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,6 +2162,7 @@ function! s:BufFinderCommands()
21622162
call s:addfilecmds("loop")
21632163
call s:addfilecmds("factory")
21642164
call s:addfilecmds("cell")
2165+
call s:addfilecmds("job")
21652166
endfunction
21662167

21672168
function! s:completion_filter(results,A)
@@ -2275,6 +2276,10 @@ function! s:cellList(A,L,P)
22752276
return s:autocamelize(rails#app().relglob("app/cells/", "**/*", ".rb"),a:A)
22762277
endfunction
22772278

2279+
function! s:jobList(A,L,P)
2280+
return s:autocamelize(rails#app().relglob("app/jobs/", "**/*", ".rb"),a:A)
2281+
endfunction
2282+
22782283
function! s:loopList(A,L,P)
22792284
return s:autocamelize(rails#app().relglob("app/loops/", "**/*", ".rb"),a:A)
22802285
endfunction
@@ -2696,6 +2701,10 @@ function! s:cellEdit(cmd,...)
26962701
return s:EditSimpleRb(a:cmd,"cell",a:0? a:1 : s:controller(1),"app/cells/",".rb")
26972702
endfunction
26982703

2704+
function! s:jobEdit(cmd,...)
2705+
return s:EditSimpleRb(a:cmd,"job",a:0? a:1 : s:controller(1),"app/jobs/",".rb")
2706+
endfunction
2707+
26992708
function! s:helperEdit(cmd,...)
27002709
return s:EditSimpleRb(a:cmd,"helper",a:0? a:1 : s:controller(1),"app/helpers/","_helper.rb")
27012710
endfunction

0 commit comments

Comments
 (0)