Skip to content

[doc] Improve Model.setup() function documentation #2332

Closed

Description

@davidcheung

Related to #1485

Objective:

  • To educate users to use model.setup() function to customize extended models
  • It behaves like a constructor, where child will automatically call the parent's constructor

Use case

  • validation inheritance
  • customized user and child's setter getters

example

/cc @crandmck @raymondfeng @bajtos @richardpringle
not sure if my information is completely accurate, PTAL

Activity

  1. bajtos commented on May 18, 2016

    @bajtos
    Member

    @davidcheung I think your description is good.

    There is one caveat of MyModel.setup() - it works well for changes made from code, but it doesn't work for settings defined in JSON files, for example ACLs (see #2270) and remote methods (#2350). I think the documentation should mention these limitations.

  2. stale commented on Aug 23, 2017

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  3. crandmck commented on Aug 23, 2017

    @crandmck
    Contributor

    Probably should keep this open.

  4. stale commented on Oct 22, 2017

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  5. stale commented on Nov 5, 2017

    @stale

    This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions