Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
Fix for Chef master where the two IVARS consts are frozen.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderanger committed Jul 9, 2018
1 parent 4fcc679 commit 807ef46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/poise/helpers/subresources/container.rb
Expand Up @@ -217,8 +217,8 @@ def container_default(val=nil)
def included(klass)
super
klass.extend(ClassMethods)
klass.const_get(:HIDDEN_IVARS) << :@subcontexts
klass.const_get(:FORBIDDEN_IVARS) << :@subcontexts
klass.const_set(:HIDDEN_VARS, klass.const_get(:HIDDEN_IVARS) + [:@subcontexts])
klass.const_set(:FORBIDDEN_IVARS, klass.const_get(:FORBIDDEN_IVARS) + [:@subcontexts])
end
end

Expand Down

0 comments on commit 807ef46

Please sign in to comment.