check active record defined in railtie
Merge pull request #8 from kristianmandrup/master

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