I’m trying to use annotate to document my model classes. Two of the models don’t work, though, with the following errors:
$ bundle exec annotate --position before
Unable to annotate acceptance_criterion_results.rb: #<NoMethodError: undefined method `assert_valid_keys’ for :acceptance_criterion:Symbol>
Unable to annotate test.rb: #<TypeError: can’t convert Symbol into Integer>
Annotated (4): AcceptanceCriterion, Invoice, OutdataInvoice, TestExecution
There’s nothing special about either of the models. Any help is appreciated.
I am using Ruby 1.9.3-p0 and annotate 2.4.1.beta1 (2.4.0 crashed before annotating anything).