activeadmin_addons icon indicating copy to clipboard operation
activeadmin_addons copied to clipboard

ajax_filter for association fields?

Open RaviAsnani opened this issue 8 years ago • 0 comments

The following method doesn't work as expected for has_many through associations

https://github.com/platanus/activeadmin_addons/blob/25dfc052734b59ff6010d93cc39af3387bff5379/app/inputs/ajax_filter_input.rb#L33-L43

e.g:

class A < ApplicationRecord
  has_many :a, dependent: :destroy
  has_many :b, through: :a
end

# in ActiveAdmin
filter  :a_b_id

RaviAsnani avatar Jun 16 '17 20:06 RaviAsnani