More Ruby 1.8.5 compat
Reported by Dan Sully | September 9th, 2008 @ 01:30 PM
class Object # Available in 1.8.6 and later. unless respond_to?(:instance_variable_defined?)
def instance_variable_defined?(variable)
instance_variables.include?(variable.to_s)
end
end end
(from http://github.com/rails/rails/tr...
Please make sure to do testing on 1.8.5!!!!!!
This is also in extlib
Comments and changes to this ticket
-
Dirkjan Bussink September 9th, 2008 @ 05:00 PM
Well, 1.8.5 is no longer a maintained version, only 1.8.6 and 1.8.7 are. Supporting everything below that can be quite a pain and I don't know the general consensus on it. Other people?
-
Sam Smoot September 9th, 2008 @ 05:08 PM
We aren't going to test 1.8.5 in-house unless one of our deployments requires it.
We will accept patches like this for 1.8.5 however.
I'll apply this shortly. Thanks.
-
Dirkjan Bussink October 8th, 2008 @ 11:35 AM
- → State changed from new to resolved
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
