Changed behaviour of acts_as_paraniod. Finder wrapper removed an replaced by simple named_scope 'without_deleted'.
This commit is contained in:
parent
cd9636a650
commit
325d47b22f
18 changed files with 218 additions and 136 deletions
|
|
@ -101,7 +101,7 @@ class DeliveriesController < ApplicationController
|
|||
end
|
||||
|
||||
def auto_complete_for_article_name
|
||||
@articles = @supplier.articles.find(:all,
|
||||
@articles = @supplier.articles.without_deleted.find(:all,
|
||||
:conditions => [ "LOWER(articles.name) LIKE ?", '%' + params[:article][:name].downcase + '%' ],
|
||||
:limit => 8)
|
||||
render :partial => 'shared/auto_complete_articles'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue