Skip to content

0.13.0-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@njbbaer njbbaer released this 24 Mar 23:09
a801267

This is a beta release to add support for inheritance of Sift filters & sorts.

For example:

def PostsController < ApplicationController
  filter_on :id, type: :integer
  sort_on :title, type: :string
end

def PostsChild < ThingController
  sort_on :title, internal_name: :body, type: :string
end

The PostsChild resource inherits the id filter, and the title sort has been overridden to sort by body instead.