Closed fabriciofreitag closed 5 years ago
Yes, you can do something like this:
class MyGrid
attr_accessor :only_these_foo_ids
filter(:foos, :enum, select: :foo_select)
def foo_select
Foo.where(id: only_these_foo_ids).pluck(:name, :id)
end
end
brilliant! thanks!!!!
Is it currently possible to achieve something like this?