Closed kimsuelim closed 11 years ago
Hi. Thanks for the pull. Unfortunately your use case does not fit with ObjectTable. ObjectTable handles classes that have fields with corresponding methods. Since Mongoid does not do that for your case I suggest subclassing Table for your own use or writing an adapter class around Mongoid for ObjectTable.
If the attribute is dynamic field, Mongoid not provide the getters and setters and enforce to method_missing call. In this case must use the other provided accessor methods: ([] and []=) or (read_attribute and write_attribute).
Please check pull request. Thanks.