1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

Only generate template files when doing rails g kaminari:views ...

This basically reverts 12822c9ee1.

closes #623.
This commit is contained in:
Yuki Nishijima 2014-11-20 15:44:38 -08:00
parent 2f29c2ae55
commit 00dbca82e5

View file

@ -90,7 +90,7 @@ BANNER
end
def templates_for(template_engine) #:nodoc:
@templates.select {|t| !t.description?}.select {|t| !t.view? || (t.engine == template_engine)}
@templates.select {|t| t.engine == template_engine }
end
end