mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 07:16:41 +00:00
removed the 'resume' call, um wtf?
This commit is contained in:
parent
a76fc112e7
commit
817e49940c
@ -53,11 +53,10 @@ module ValidatesTimeliness
|
|||||||
|
|
||||||
def setup_for_rails
|
def setup_for_rails
|
||||||
major, minor = Rails::VERSION::MAJOR, Rails::VERSION::MINOR
|
major, minor = Rails::VERSION::MAJOR, Rails::VERSION::MINOR
|
||||||
self.send("setup_for_rails_#{major}_#{minor}")
|
|
||||||
self.default_timezone = ::ActiveRecord::Base.default_timezone
|
self.default_timezone = ::ActiveRecord::Base.default_timezone
|
||||||
|
self.send("setup_for_rails_#{major}_#{minor}")
|
||||||
rescue
|
rescue
|
||||||
puts "Rails version #{Rails::VERSION::STRING} not explicitly supported by validates_timeliness plugin. You may encounter some problems."
|
puts "Rails version #{major}.#{minor}.x 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