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

Restructure querying into plugin #216

Merged
merged 3 commits into from
May 8, 2018
Merged

Restructure querying into plugin #216

merged 3 commits into from
May 8, 2018

Commits on May 8, 2018

  1. Configuration menu
    Copy the full SHA
    95a029f View commit details
    Browse the repository at this point in the history
  2. Add Mobility::Arel

    shioyama committed May 8, 2018
    Configuration menu
    Copy the full SHA
    384103a View commit details
    Browse the repository at this point in the history
  3. Replace QueryMethods with nodes and Query plugin

    I've left this as one giant commit, because to split it is more work
    that it is worth. This change replaces module builders for each backend
    with a single plugin which delegates to the methods build_node (which
    returns an Arel node) and (optionally) add_translations (which modifies
    an AR::Relation) on the backend class.
    
    Backend classes now need only to implement these one or two methods and
    querying is supported without any extra work.
    shioyama committed May 8, 2018
    Configuration menu
    Copy the full SHA
    4161ed0 View commit details
    Browse the repository at this point in the history