I want to use the ActiveSupport extensions 3600.seconds syntax in a plain Ruby file but I’m having trouble finding the right ActiveSupport file to require.
As far as I can work out from the guides, I need to require "active_support/core_ext/date/calculations". That doesn’t seem to do it though
NoMethodError:
undefined method `seconds' for 3600:Fixnum
In activesupport that goes with Rails 3.1 this extension is in
active_support/core_ext/numeric/time. You can see it here.