Available filterrific params can now be aliased on the controller side. This
avoids conventional scope names on the model side with
prefixes (e. g. by_property, for_property) in api parameters.
filters that are available becomes: by_user, user, by_comment, comment
The filterrific params user and comment will now be renamed to by_user and
bycomment and the api avoids the by prefix. The sorted_by filter remains
unchanged.
Available filterrific params can now be aliased on the controller side. This avoids conventional scope names on the model side with prefixes (e. g. by_property, for_property) in api parameters.
Example:
available_filters: [ sorted_by, { by_user: :user, by_comment: :comment }, ]
filters that are available becomes: by_user, user, by_comment, comment
The filterrific params user and comment will now be renamed to by_user and bycomment and the api avoids the by prefix. The sorted_by filter remains unchanged.