hash_mapper
hash_mapper copied to clipboard
Callable filters
Allow passing callables as per-field mapping filters
name_with_title = ->(name) { "Mr. #{name}" } # or anything that responds to `#call(value)`.
map from('/name'), to('/name', filter: name_with_title )