Skip to content

Commit 02af5e5

Browse files
committed
Use %i not %o for singular
References tpope#85.
1 parent b92ee35 commit 02af5e5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

autoload/rails.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4423,6 +4423,7 @@ function! s:readable_projected(key, ...) dict abort
44234423
\ 'h': toupper(root[0]) . tr(rails#underscore(root), '_', ' ')[1:-1],
44244424
\ 'p': rails#pluralize(root),
44254425
\ 'o': rails#singularize(root),
4426+
\ 'i': rails#singularize(root),
44264427
\ '%': '%'}, a:0 ? a:1 : {})
44274428
if suffix =~# '\.js\>'
44284429
let ph.S = s:gsub(ph.S, '::', '.')

doc/rails.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ variant of the variable portion:
782782

783783
%s: original
784784
%p: pluralized
785-
%o: singularized ("one")
785+
%i: singularized
786786
%S: camelized
787787
%h: humanized
788788

0 commit comments

Comments
 (0)