grape

https://github.com/intridea/grape

Ruby

An opinionated framework for creating REST-like APIs in Ruby.

Grape::Validations::ParamsScope#check_coerce_with

Enforce correct usage of :coerce_with parameter.
We do not allow coercion without a type, nor with
+JSON+ as a type since this defines its own coercion
method.

Source | Google | Stack overflow

Edit

git clone [email protected]:intridea/grape.git

cd grape

open lib/grape/validations/params_scope.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Grape--Validations--ParamsScope-check_coerce_with-for-pr


# Commit to git

git add lib/grape/validations/params_scope.rbgit commit -m "better docs for Grape::Validations::ParamsScope#check_coerce_with"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Grape--Validations--ParamsScope-check_coerce_with-for-pr

hub pull-request


# Celebrate!