Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes issue if constant is defined in global scope under Ruby 1.9 #69

Merged
merged 1 commit into from
Nov 28, 2011

Conversation

alindeman
Copy link
Contributor

  • Ruby 1.9 constants are no longer lexically scoped; so if ::User is
    defined, Module#const_defined? :User will return true for every
    module unless the second argument, inherit, is false.

* Ruby 1.9 constants are no longer lexically scoped; so if ::User is
  defined, Module#const_defined? :User will return true for every
  module unless the second argument, inherit, is false.
chicks added a commit that referenced this pull request Nov 28, 2011
Fixes issue if constant is defined in global scope under Ruby 1.9
@chicks chicks merged commit c22b789 into chicks:master Nov 28, 2011
@chicks
Copy link
Owner

chicks commented Nov 28, 2011

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants