GithubHelp home page GithubHelp logo

Comments (3)

eugenebolshakov avatar eugenebolshakov commented on June 23, 2024

The setting is available in rails 2.3 http://bit.ly/Nnasy. AFAIK in earlier versions templates are eager loaded if config.cache_classes is set to "true", which is required to use cucumber http://bit.ly/Hrc57. So there does not seem to be an easy way to disable that for cucumber in rails < 2.3.

from spork.

timcharper avatar timcharper commented on June 23, 2024

Thank you for reporting this, this is a very sensible default. Spork should definitely handle this out of the box - it already prevents the app from pre-loading.

from spork.

timcharper avatar timcharper commented on June 23, 2024

I just released Spork 0.5.7 which addresses this issue.

See the link below:

http://github.com/timcharper/spork/blob/ce042d5e6dff676e0394cd4b5b28199a5700dea2/lib/spork/app_framework/rails.rb#L97

Basically, rather than forcing cache_classes to be false, or cache_template_loading to be false, I 'trapped' the method responsible for eager loading views so it would just be delayed until after the fork.

Tested and passed in rails 2.3.2, 2.2.2, 2.1.2, 2.0.5

from spork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.