Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 495 Bytes

CONTRACT.md

File metadata and controls

13 lines (11 loc) · 495 Bytes

Contract Generator Documentation

This boilerplate is using dry-validation gem for contract structure. If you need contract, you can use custom contract generator like that:

$ rails generate contract Users::Registration 

Then, it will create some service classes for your operations.

create  app/contracts/users/registration_contract.rb
create  test/contracts/users/registration_contract_test.rb

You can access service templates from /lib/generators/contract folder.