public
Description: Rails TzTime plugin
Homepage: http://svn.rubyonrails.org/rails/plugins/tztime/
Clone URL: git://github.com/jonleighton/tz_time.git
add #tz_time_attributes class method for ActiveRecord models to 
automatically change Times to TzTimes

git-svn-id: http://svn.rubyonrails.org/rails/plugins/tztime@6521 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
rick (author)
Fri Apr 13 12:48:33 -0700 2007
commit  70e23a3789133a4074695379cc3d42eb0a485898
tree    239c0c5fe6bf59472dba5e752698de74d4443e5d
parent  c7379cd78ed2c60b6262765a32eaa519837b912a
0
...
38
39
40
41
42
43
44
45
46
47
 
48
49
50
...
38
39
40
 
 
 
 
 
 
 
41
42
43
44
0
@@ -38,13 +38,7 @@ No more! Let the Rodent of Unusually Fine TZ Acumen aid you:
0
   end
0
 
0
   class Task < ActiveRecord::Base
0
- before_create :fix_timezone
0
-
0
- private
0
-
0
- def fix_timezone
0
- self.alert_at = TzTime.at(self.alert_at)
0
- end
0
+ tz_time_attributes :alert_at
0
   end
0
 
0
   class TasksController < ApplicationController

Comments

    No one has commented yet.