Merge pull request #183 from kamille-gz/use_AS_on_load_hook

use ActiveSupport.on_load hook for extend ActiveRecord
This commit is contained in:
Adam Meehan 2019-03-09 17:16:11 +11:00 committed by GitHub
commit 2a80683683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ module ValidatesTimeliness
end
end
class ActiveRecord::Base
ActiveSupport.on_load(:active_record) do
include ValidatesTimeliness::AttributeMethods
include ValidatesTimeliness::ORM::ActiveRecord
end