mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
removed unnecessary version condition
This commit is contained in:
parent
aa92ad8788
commit
abbf79faae
@ -32,12 +32,9 @@ puts "Using #{vendored ? 'vendored' : 'gem'} Rails version #{RAILS_VER} (ActiveR
|
||||
|
||||
ActiveRecord::Base.default_timezone = :utc
|
||||
|
||||
if RAILS_VER >= '2.2'
|
||||
if RAILS_VER >= '2.1'
|
||||
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
|
||||
|
||||
ActiveRecord::Migration.verbose = false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user