mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 15:22:58 +00:00
Rails 2.2 compatibility fixes with more version check hackery (yuck, will fix later)
This commit is contained in:
@@ -32,7 +32,10 @@ puts "Using #{vendored ? 'vendored' : 'gem'} Rails version #{RAILS_VER} (ActiveR
|
||||
|
||||
ActiveRecord::Base.default_timezone = :utc
|
||||
|
||||
if RAILS_VER >= '2.1'
|
||||
if RAILS_VER >= '2.2'
|
||||
Time.zone_default = ActiveSupport::TimeZone['UTC']
|
||||
ActiveRecord::Base.time_zone_aware_attributes = true
|
||||
elsif RAILS_VER >= '2.1'
|
||||
Time.zone_default = TimeZone['UTC']
|
||||
ActiveRecord::Base.time_zone_aware_attributes = true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user