draper
draper copied to clipboard
Cleanup: Initialize instance variable before use to avoid Ruby warnings
Description
This avoids a Ruby warning emitted on use.
By initializing the variable before use, this is an easy win against the sea of warnings output.
Testing
- Run the test with
RUBYOPT=-W2
- See that
@decorated_collection
is not among the output
Hi there! Any news?
Ping @codebycliff
@olleolleolle can you please rebase your branch on master?
I could make an attempt, in about 12 hours.
But I can hit the Update Branch button right now. If green, you could Squash commits Into One Commit, using the merge button variant for that.
Haha, the issue is created by: me defining a variable, so the test must be altered to match that new situation!
Update: I updated the test, changing it to match the current code.
@olleolleolle thank you! Ping @codebycliff
ping @codebycliff