Skip to content

Commit

Permalink
clear out opts so it isn't kept alive by the block to define_method
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Somerville committed Jun 5, 2013
1 parent ca0bce0 commit 6b34ec6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mime/pooled_attr_accessor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def pooled_attr_accessor(sym, opts = {})
instance_variable_set(ivar, ValuePool[val])
end
private writer if opts[:private_writer]
opts = nil
end
end
end

0 comments on commit 6b34ec6

Please sign in to comment.