Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed autocomplete bug when model has no associations. Thanks alobato…

… (Arley Lobato).

Changed Create functional test snippet.
  • Loading branch information...
commit 54fa7b253bb99a083fc2137cda6a4648f7694197 1 parent 9ead074
Carlos Brando carlosbrando authored
4 Snippets/Create functional test class.tmSnippet
View
@@ -3,10 +3,10 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>require File.dirname(__FILE__) + '/../test_helper'
+ <string>require 'test_helper'
class ${1:Model}ControllerTest &lt; ActionController::TestCase
- deft$0
+ test$0
end
</string>
<key>name</key>
4 Support/bin/list_columns.rb
View
@@ -62,8 +62,10 @@ def clone_cache(klass, new_word)
def display_menu(klass)
columns = cache[klass][:columns]
associations = cache[klass][:associations]
+
+ options = associations.empty? ? [] : associations + [nil]
+ options += columns + [nil, RELOAD_MESSAGE]
- options = associations + [nil] + columns + [nil, RELOAD_MESSAGE]
selected = TextMate::UI.menu(options)
return if selected.nil?
Please sign in to comment.
Something went wrong with that request. Please try again.