```ruby
class Jar
  include Mongoid::Document
  identity type: Integer
  has_many :cookies, :class_name => "Cookie"
end
```

Fix 1.8.x syntax error in spec models
user
```ruby
class Jar
  include Mongoid::Document
  identity :type => Integer
  has_many :cookies, :class_name => "Cookie"
end
```
assistant