We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When you use the search within an association as
field :columns, as: :has_many, hide_search_input: false # 👈
and click the result than you lose the association where you came from
Hardcode the results, but that feels dirty
self.search = { results_count: 40, query: -> { if params['via_reflection_class'] == 'Table' table_id = params['via_reflection_id'] return query.where(avo_table_id: table_id) .where('label ILIKE ?', "%#{params[:q]}%") .pluck(:id, :label) .map do |id, label| { _id: id, _label: label, _url: "/avo/resources/table_columns/#{id}?via_record_id=#{params['via_reflection_id']}&via_resource_class=Avo::Resources::Table" } end end
The breadcrumb is such a nice feature to stay in context of where you were working, but without the monkey patch above you would lose it
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature
When you use the search within an association as
and click the result than you lose the association where you came from
Current workarounds
Hardcode the results, but that feels dirty
Additional context
The breadcrumb is such a nice feature to stay in context of where you were working, but without the monkey patch above you would lose it
The text was updated successfully, but these errors were encountered: