Decanter is a Ruby gem that makes it easy to transform incoming data before it hits the model. You can think of Decanter as the opposite of Active Model Serializers (AMS). While AMS transforms your outbound data into a format that your frontend consumes, Decanter transforms your incoming data into a format that your backend consumes.

Source: LaunchPadLab/decanter: Decanter aims to reduce complexity in Rails controllers by creating a place for transforming data before it hits the model and database.

Haven’t used this either, but it’s an interesting idea.