Minor refactoring.

This commit is contained in:
Zach Dennis 2010-03-13 20:20:23 -05:00
parent 7a3850a7c8
commit d4c120497e

View file

@ -22,7 +22,10 @@ class ActiveRecord::Base
class << self
# use tz as set in ActiveRecord::Base
tproc = @@default_timezone == :utc ? lambda { Time.now.utc } : lambda { Time.now }
tproc = lambda do
ActiveRecord::Base.default_timezone == :utc ? Time.now.utc : Time.now
end
AREXT_RAILS_COLUMNS = {
:create => { "created_on" => tproc ,
"created_at" => tproc },