Browse Source

Update the class constants in place to avoid a warning.

Noah Kantrowitz 12 years ago
parent
commit
e016126d89
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libraries/default.rb

+ 2 - 2
libraries/default.rb

@@ -21,8 +21,8 @@
 class Chef
   class Resource
     # Globally update the blocklists to prevent infinite recursion in #to_json and similar
-    FORBIDDEN_IVARS += [:@application, :@application_provider]
-    HIDDEN_IVARS += [:@application, :@application_provider]
+    FORBIDDEN_IVARS.concat [:@application, :@application_provider]
+    HIDDEN_IVARS.concat [:@application, :@application_provider]
 
     module ApplicationBase
       def self.included(klass)