lib/ahoy.rb in ahoy_matey-3.0.4 vs lib/ahoy.rb in ahoy_matey-3.0.5
- old
+ new
@@ -117,8 +117,12 @@
ActiveSupport.on_load(:action_view) do
include Ahoy::Helper
end
# Mongoid
+# TODO use
+# ActiveSupport.on_load(:mongoid) do
+# Mongoid::Document::ClassMethods.include(Ahoy::Model)
+# end
if defined?(ActiveModel)
ActiveModel::Callbacks.include(Ahoy::Model)
end