mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-24 14:56:43 +00:00
change error to warning for untested Rails version
This commit is contained in:
parent
07359c6157
commit
694a4bdd69
@ -56,7 +56,8 @@ module ValidatesTimeliness
|
|||||||
self.send("setup_for_rails_#{major}_#{minor}")
|
self.send("setup_for_rails_#{major}_#{minor}")
|
||||||
self.default_timezone = ::ActiveRecord::Base.default_timezone
|
self.default_timezone = ::ActiveRecord::Base.default_timezone
|
||||||
rescue
|
rescue
|
||||||
raise "Rails version #{Rails::VERSION::STRING} not yet supported by validates_timeliness plugin"
|
puts "Rails version #{Rails::VERSION::STRING} not explicitly supported by validates_timeliness plugin. You may encounter some problems."
|
||||||
|
resume
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user