lib/rating.rb in rating-0.12.0 vs lib/rating.rb in rating-1.0.0
- old
+ new
@@ -6,6 +6,6 @@
require 'rating/config'
require 'rating/models/rating/extension'
require 'rating/models/rating/rate'
require 'rating/models/rating/rating'
-ActiveRecord::Base.include Rating::Extension
+ActiveSupport.on_load(:active_record) { include Rating::Extension }