Cache subject visibility fixes #53
This commit is contained in:
parent
f7808e9527
commit
f5f66376f5
1 changed files with 3 additions and 0 deletions
|
@ -30,11 +30,14 @@ module Mutant
|
|||
|
||||
# Insert mutated node
|
||||
#
|
||||
# FIXME: Cache subject visibility in a better way! Ideally dont mutate it.
|
||||
#
|
||||
# @return [self]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
def insert
|
||||
subject.public?
|
||||
Loader::Eval.run(root, subject)
|
||||
self
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue