mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 07:16:41 +00:00
set time zone aware attributes on in spec helper for AR
This commit is contained in:
@@ -21,7 +21,9 @@ else
|
||||
end
|
||||
|
||||
|
||||
Time.zone_default = Time.send!(:get_zone, 'UTC') if vendored_rails
|
||||
Time.zone_default = TimeZone['UTC']
|
||||
ActiveRecord::Base.default_timezone = :utc
|
||||
ActiveRecord::Base.time_zone_aware_attributes = true
|
||||
|
||||
require 'validates_timeliness'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user