Remove dependency on ActiveRecord::Base.

Current spec status:
- ActiveRecord: 77 examples, 0 failures in 0.50052 seconds.
- Mongoid: 77 examples, 0 failures in 0.57985 seconds.