diff options
author | danielsdeleo <dan@opscode.com> | 2012-12-11 14:28:10 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2012-12-11 14:28:10 -0800 |
commit | d4d7de8e7d51677db0cb8adf363bdcccd01e4d0f (patch) | |
tree | d067ab3b22e9c41d6f106f9b60bc86590dc008a1 /lib/chef/node/attribute_collections.rb | |
parent | e9c699965a31d5f8cc8d2cba4abced9d725db2b9 (diff) | |
download | chef-d4d7de8e7d51677db0cb8adf363bdcccd01e4d0f.tar.gz |
[CHEF-3680] Specify file and line for eval
Diffstat (limited to 'lib/chef/node/attribute_collections.rb')
-rw-r--r-- | lib/chef/node/attribute_collections.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/node/attribute_collections.rb b/lib/chef/node/attribute_collections.rb index 521687e8df..5f4728b400 100644 --- a/lib/chef/node/attribute_collections.rb +++ b/lib/chef/node/attribute_collections.rb @@ -61,7 +61,7 @@ class Chef # also invalidate the cached merged_attributes on the root # Node::Attribute object. MUTATOR_METHODS.each do |mutator| - class_eval(<<-METHOD_DEFN) + class_eval(<<-METHOD_DEFN, __FILE__, __LINE__) def #{mutator}(*args, &block) root.reset_cache super @@ -115,7 +115,7 @@ class Chef # also invalidate the cached `merged_attributes` on the root Attribute # object. MUTATOR_METHODS.each do |mutator| - class_eval(<<-METHOD_DEFN) + class_eval(<<-METHOD_DEFN, __FILE__, __LINE__) def #{mutator}(*args, &block) root.reset_cache super |