mongoid/mongoid — Issue #1585: respond_to? dynamic field writer returning false
Author: semaperepelitsa
Created: 2012-01-11 23:13:37+00:00
State: open

Both accessors work but respond_to? returns false for writer. Here is an example:

```ruby
class Person
include Mongoid::Document
end

me = Person.new
me.respond_to?(:gender) # => false
me.respond_to?(:gender=) # => false
me[:gender] = "Male"
me.respond_to?(:gender) # => true
me.respond_to?(:gender=) # => false # why?
me.gender = "Unspecified" # works
```