Skip to content

Conversation

kennyj
Copy link

@kennyj kennyj commented Sep 15, 2011

Hi. I have added custom filter support.

ex)
class ProductsController < Admin::BaseController
  autocomplete :brand, :name do |items|
     # current_user is controller instance method.
    items.where("user_id = :user_id", :user_id => current_user.id).a_scope(params["foo"])
  end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant