Hello everybody,
I'm trying to use Merb 1.0.5.
And I'm struggling with strange to_f() behavior.
Please see below,
% merb -i
(snip)
irb(main):008:0> (90.0).to_i
=> nil
% irb
irb(main):001:0> (90.0).to_i
=> 90
This behavior affect to code in Responder::_accept_types.
quality = quality ? (quality.to_f * 100).to_i : 100
(merb-core/controller/mixins/responder.rb:277)
Is this a bug?
Thanks,
Kaz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---