active-support

Default TimeZone with ActiveSupport (without Rails)

How does the default TimeZone get set in ActiveSupport? Here's what's happening: irb -r 'rubygems' ruby-1.8.7-p174 > require 'active_support' ruby-1.8.7-p174 > require 'active_support/time_with_zone' ruby-1.8.7-p174 > Time.zone ruby-1.8.7-p174 > nil How do I set that to the current location by default? ...

How to call ActiveSupport method inside rake task?

This is what I'm trying: require "active_support" desc "test" task :foo => [:environment] do parse(:categories) do |hash| # cleanup name hash[:name] = titlecase(hash[:name]) # ... end end This is the error I'm getting: undefined method `titlecase' main:Object I've also tried: ActiveSupport::Inflector::titlecase...