Commits

Anonymous committed 5f4b1ae

* Fixed it again

Comments (0)

Files changed (2)

app/controllers/synonymies_controller.rb

 	end
 
 	def auto_complete_model_for_word_form_verbose
-		@word_forms = WordForm.find :all, :limit => 10, :select => :word_id, :group => :word_id, :order => nil, \
+		@word_forms = WordForm.find :all, :limit => 10, :select => :word_id, :group => :word_id, \
 			:conditions => [ 'LOWER(text) LIKE ?', "%#{params[:word_form_verbose]}%" ]
 		render :inline => '<ul>
 <% for word_form in @word_forms %>

app/models/word_form.rb

 class WordForm < ActiveRecord::Base
 	belongs_to :word
 
-	default_scope :order => 'text ASC'
-
 	validates_presence_of :text
 	validates_uniqueness_of :text, :scope => :word_id
 	validates_length_of :text, :within => 2..128