Where is "megabytes" method for fixnums defined? As far as I understand, its not a core ruby method, since its only available in rails.
ruby -e 'puts 5.megabytes'
In default rails installation it returns:
Loading development environment (Rails 2.3.8)
>> 5.megabytes
=> 5242880
At some point in my app something wrong happen, and now megabytes returns wrong values...
Loading development environment (Rails 2.3.8)
>> 5_000_000
=> 5000000
>> 5.megabytes
=> 5120
>> 5.kilobytes
=> 5
>> 5.bytes
=> 5
I am guessing some gem did something very wrong, but Its hard for me to track it to the source now.
Any idea how to find out where is the problem located?