-
Notifications
You must be signed in to change notification settings - Fork 35
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
Unset an instance variable? #28
Comments
Happy to look at at pull request if you have time. Robbie On Fri, 29 Apr 2016, 17:22 Charlie Hawker, [email protected] wrote:
|
Great. Working on one now after discussing best solution on stack overflow. |
@robb1e am I missing something about testing? Both
Given |
Hmm, I just pulled the latest and run the tests successfully. Not sure what to suggest, I haven't been involved in this code base for a while. |
Yep, it's driving me crazy too! Any particular version of Ruby / Rspec? Thanks for taking a look. |
We are using render_anywhere to render a series of pages, and as such there is a loop.
There are some instances where instance variables are set on iterations of the loop that won't be needed on the next iteration. Leaving them assigned causes rendering issues, but there is no
unset_instance_variable
method (or similar).Re-initializing the object which uses the render_anywhere gem on each iteration of the loop would evidently solve this but would be an expensive operation.
Would adding a method like the following be a viable solution?
The text was updated successfully, but these errors were encountered: