-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
Both accessors work but respond_to? returns false for writer. Here is an example:
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