Param Validators as Ruby objects
Using service objects as replacement of strong params makes controller validation easy and complete. Check our gem here: ParamsFor. Thx and happy coding.
Using service objects as replacement of strong params makes controller validation easy and complete. Check our gem here: ParamsFor. Thx and happy coding.
Comments
Nice job. I made a gem to handle params too except that it does not makes use of ActiveModel::Validations, it just extract the params logic into it own class.
https://github.com/edelpero/action_parameter
Post a comment