HomePhorge

[#3866] Rename the method metaclass to singleton_class to avoid the…
8faa4663a4d7Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

[#3866] Rename the method metaclass to singleton_class to avoid the deprecation warnings from Rails ActiveSupport

The metaid.rb file came straight from why the lucky stiff's "seeing
metaclasses clearly" article. Rails used this too, but they recently
deprecated the name metaclass in favor of singleton_class to match what
ruby-core decided to do. meta, eigen and singlton class were all
suggested and in the end singleton was agreed upon.

http://redmine.ruby-lang.org/issues/show/1082

Details

Provenance
Matt Robinson <matt@puppetlabs.com>Authored on
James Turnbull <james@lovedthanlost.net>Committed on Jun 16 2010, 6:19 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU53e361044cd6: Bug 3731. Applied Fix suggested by Doug Warner to always flatten out the array
Branches
Unknown
Tags
Unknown

Event Timeline

James Turnbull <james@lovedthanlost.net> committed rPU8faa4663a4d7: [#3866] Rename the method metaclass to singleton_class to avoid the… (authored by Matt Robinson <matt@puppetlabs.com>).Jun 16 2010, 6:19 AM