Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional callbacks for functions with default params #319

Merged
merged 1 commit into from
Dec 21, 2018

Commits on Dec 17, 2018

  1. Add additional callbacks for functions with default params

    In pretty much every public function in `ex_machina` you allow users to
    either give or not give parameters for the resource that's being built,
    but in the documentation that's not shown because you can't show
    optional arguments in callback definitions.
    
    This commit adds callbacks for these `/1` or `/2` functions that are
    commonly used. This benefits documentation, but also enforces the
    behaviour contract to make sure that all documented functionality is
    implemented correctly.
    devonestes committed Dec 17, 2018
    Configuration menu
    Copy the full SHA
    b10f1b6 View commit details
    Browse the repository at this point in the history