diff --git a/lib/ar-extensions/import.rb b/lib/ar-extensions/import.rb index 806e9ec..ce81773 100644 --- a/lib/ar-extensions/import.rb +++ b/lib/ar-extensions/import.rb @@ -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 },