Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Sep 24, 2025

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original issue description:

#623 added ransack aliases, so long query strings like owner_first_name_or_owner_last_name can be shortened to owner. This feature is great, but it'd be even better if we could combine those aliases with _or_ like any other query string.

Example:

class Post < ApplicationRecord
  ransack_alias :owner, :owner_first_name_or_owner_last_name
  ransack_alias :approver, :approver_first_name_or_approver_last_name
end

Post.ransack(owner_or_approver_cont: "Bob")

Fixes #847


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

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.

Add the ability to combine aliases
2 participants