if defined?(ActiveRecord) in railtie to make it work in my mongoid based Rails app ;)