This project is archived and is in readonly mode.
BlankSlate is not Ruby 1.9 compatible
Reported by David Reese | August 6th, 2009 @ 07:06 PM | in 2.3.6
Ruby 1.9, Object#methods and Object#instance_methods returns a list of symbols. This code in BlankSlate expects the pre-1.9 behavior.
Without this change, no methods are ever actually hidden in Ruby 1.9, because the method names (as strings) are never found.
The attached patch is a small change to (Builder) BlankSlate.
Comments and changes to this ticket
-
David Reese August 6th, 2009 @ 09:44 PM
Sorry; this diff includes another fix, for cases when hide(name) is passed a string instead of a :symbol.
-
David Reese August 6th, 2009 @ 10:10 PM
Slowly working through all the errors, apparently.
Now: preventing BlankSlate from hiding #object_id; otherwise Ruby1.9 throws this funny little warning:
warning: undefining
object_id' may cause serious problem
-
Jeremy Kemper August 7th, 2009 @ 06:45 AM
- Assigned user set to Jeremy Kemper
- State changed from new to open
- Milestone set to 2.3.4
-
Jeremy Kemper September 11th, 2009 @ 11:04 PM
- Milestone changed from 2.3.4 to 2.3.6
[milestone:id#50064 bulk edit command]
-
Jeremy Kemper April 24th, 2010 @ 08:19 PM
- State changed from open to wontfix
This is in the bundled builder lib, so should be contributed directly upstream. In Rails 3, builder is unbundled entirely.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>