Minor refactoring.
This commit is contained in:
parent
7a3850a7c8
commit
d4c120497e
|
@ -22,7 +22,10 @@ class ActiveRecord::Base
|
||||||
class << self
|
class << self
|
||||||
|
|
||||||
# use tz as set in ActiveRecord::Base
|
# 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 = {
|
AREXT_RAILS_COLUMNS = {
|
||||||
:create => { "created_on" => tproc ,
|
:create => { "created_on" => tproc ,
|
||||||
"created_at" => tproc },
|
"created_at" => tproc },
|
||||||
|
|
Loading…
Reference in a new issue