Where is the best place to add a method to the integer class in Rails? I\'d like to add a to_meters and to_miles methods.
to_meters
to_miles
If you were going to do this, which you shouldn't, then you would put your code into:
config/initializers/add_methods_that_are_naughty_to_numeric.rb
Rails would automatically run these for you.