Skip to content

Commit

Permalink
Keep a (temporary) StaticScope alias for backwards compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Josep M. Bach authored and dbussink committed Jun 8, 2012
1 parent a7b957a commit 2c4e22d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/bootstrap/constant_scope.rb
Expand Up @@ -31,4 +31,8 @@ def class_variable_get_or_set(sym, val)
raise NameError, "Invalid class variable name '#{sym}'"
end
end

# NOTE: Temporary alias for backwards compatibility. StaticScope will
# eventually be deprecated in favor of ConstantScope.
StaticScope = ConstantScope
end

0 comments on commit 2c4e22d

Please sign in to comment.