Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

root/plugins/tzinfo_timezone/init.rb

Revision 4105, 182 bytes (checked in by minam, 4 years ago)

tzinfo_timezone plugin

Line 
1 require 'tzinfo_timezone'
2
3 # remove the existing TimeZone constant
4 Object.send(:remove_const, :TimeZone)
5
6 # Use TzinfoTimezone as the TimeZone class
7 Object::TimeZone = TzinfoTimezone
Note: See TracBrowser for help on using the browser.