removed after initialize hook as use ActiveSupport.on_load(:active_record) already
fixed TypeError when booting a Rails app
fixes #218