christospappas/streama — Issue #8: Streama uses reserved mongoid field
Author: chrisupb
Created: 2012-02-05 12:05:27+00:00
State: open

Activity class is broken because it uses the reserved field :target ( https://github.com/christospappas/streama/blob/master/lib/streama/activity.rb#L13 ).

Using mongo (1.5.2)
Using mongoid (2.4.3)

```Defining a field named target is not allowed. Do not define fields that conflict with Mongoid internal attributes or method names.
mongoid (2.4.3) lib/mongoid/fields.rb:328:in `check_field_name!'
mongoid (2.4.3) lib/mongoid/fields.rb:192:in `field'
bundler/gems/streama-c9a3c3e891bc/lib/streama/activity.rb:13:in `block in '
activesupport (3.1.0) lib/active_support/concern.rb:122:in `class_eval'
activesupport (3.1.0) lib/active_support/concern.rb:122:in `append_features'
app/models/activity.rb:2:in `include'
app/models/activity.rb:2:in `'
app/models/activity.rb:1:in `'
```