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

Introduce a context for rendering fixtures ERB. #13022

Merged
merged 1 commit into from Dec 3, 2013

Commits on Dec 3, 2013

  1. Introduce a context for rendering fixtures ERB.

    Fixture files are passed through an ERB renderer before being read as
    YAML. The rendering is currently done in the context of the main object,
    so method definitons leak into other fixtures, and there is no clean
    place to define fixture helpers.
    
    After this commit, the ERB renderer will use a new subclass of
    ActiveRecord::FixtureSet.context_class each time a fixture is rendered.
    pwnall committed Dec 3, 2013
    Copy the full SHA
    ddf27ac View commit details
    Browse the repository at this point in the history