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 Settings::Container#reset!, set up inheritance relationship #323

Merged
merged 2 commits into from
Feb 28, 2015
Merged

Add Settings::Container#reset!, set up inheritance relationship #323

merged 2 commits into from
Feb 28, 2015

Commits on Feb 24, 2015

  1. [settings/container] Allow settings to be reset

    In order to test classes that use settings without persisting state
    beyond those tests we need a way to wipe all settings for that
    container; this commit adds a #reset! method to do just that.
    adrienthebo committed Feb 24, 2015
    Configuration menu
    Copy the full SHA
    f16d4f5 View commit details
    Browse the repository at this point in the history
  2. [settings/mixin] Look up settings in superclasses

    When a class with settings is subclassed, the settings applicable to
    the superclass are generally applicable to the subclass. In order to
    link up the  super/subclass relationship, this commit uses the
    Class#inherited hook to manually create a settings instance in the
    subclass that pulls settings from the superclass.
    adrienthebo committed Feb 24, 2015
    Configuration menu
    Copy the full SHA
    67efff2 View commit details
    Browse the repository at this point in the history