Skip to content

add custom dynamic filter support#91

Open
kennyj wants to merge 3 commits into
crowdint:masterfrom
kennyj:master
Open

add custom dynamic filter support#91
kennyj wants to merge 3 commits into
crowdint:masterfrom
kennyj:master

Conversation

@kennyj

@kennyj kennyj commented Sep 15, 2011

Copy link
Copy Markdown

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