What to use as an alternative?
My code..
time = Fixnum.induced_from(minutes_past)
This works on my local but not on my remote Heroku.
Heroku doesn’t have this method as a listed method for Fixnums.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as I know this method is deprecated in ruby 1.9.x and last existing version where you can you it is 1.8.7. I believe that is a source of your problem.
There are a couple of methods for converting value as instance of Numeric class to value as instance of Fixnum class in 1.9. For example:
or