Skip to content
New issue

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

Update readme with info on querying #238

Merged
merged 1 commit into from
May 30, 2018
Merged

Conversation

shioyama
Copy link
Owner

Adding some info on the new block-based interface for querying. If anyone is interested, please checkout the master branch and give this a go. I will release it in the next week or two, probably ActiveRecord alone first (not yet sure how Sequel will come out).

This will be very useful for gem integrations in particular, since it means that a gem that requires querying on translated attributes can be integrated once for all backends. This has been done already for FriendlyId without this level of granularity because querying in FriendlyId is quite simple, but most other querying gems require a more fine-grained interface. Ransack is the one I'm thinking of integrating first, since I'm sure it's one people would want.

Within Mobility, the first concrete benefit of this new querying interface is that it has enabled case insensitive uniqueness validation (which requires LOWER on an Arel predicate, now possible thanks to #235.

@shioyama shioyama force-pushed the update_readme_on_querying branch 3 times, most recently from e60a8b1 to fad4486 Compare May 30, 2018 02:43
Adding some info on the new block-based interface for querying. If
anyone is interested, please checkout the master branch and give this a
go. I will release it in the next week or two, probably ActiveRecord
alone first (not yet sure how Sequel will come out).

This will be very useful for gem integrations in particular, since it
means that a gem that involves querying can be integrated once for all
backends. This has been done already for FriendlyId without this level
of granularity because querying in FriendlyId is quite simple, but most
other querying gems require a more fine-grained interface. Ransack is
the one I'm thinking of integrating first.

Within Mobility, the first concrete benefit of this new querying
interface is that it has enabled case insensitive uniqueness validation
(which requires `LOWER` on an Arel predicate, now possible thanks to #235.

[ci skip]
@shioyama shioyama force-pushed the update_readme_on_querying branch from fad4486 to 478c000 Compare May 30, 2018 04:58
@shioyama shioyama merged commit 478c000 into master May 30, 2018
@shioyama shioyama deleted the update_readme_on_querying branch May 30, 2018 09:26
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