Permalink
Browse files

Fixed bug when g:loaded_rails is set

  • Loading branch information...
1 parent 6fe8371 commit 391e3908c2a4aceab99bf16f02cad4fea1592212 @tpope committed Nov 1, 2006
Showing with 2 additions and 2 deletions.
  1. +1 −1 doc/rails.txt
  2. +1 −1 plugin/rails.vim
View
@@ -59,7 +59,7 @@ Rails application development.
to complete such long method names.
6. Interface to script/*. Generally, use ":Rscript about" to call
- "script/about". Many commands have wrappers with additional features:
+ "script/about". Most commands have wrappers with additional features:
":Rgenerate controller Blog" generates a blog controller and edits
app/controllers/blog_controller.rb. |rails-scripts|
View
@@ -13,7 +13,7 @@
" Exit quickly when:
" - this plugin was already loaded (or disabled)
" - when 'compatible' is set
-if exists("g:loaded_rails") && (g:loaded_rails && !g:rails_debug) || &cp
+if &cp || (exists("g:loaded_rails") && g:loaded_rails) && !(exists("g:rails_debug") && g:rails_debug)
finish
endif
let g:loaded_rails = 1

0 comments on commit 391e390

Please sign in to comment.