Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible to annotate just one model in Ruby on Rails?

Working with a large code base and I'm hesitant to run annotate on all models. Is it possible to use the Rails annotate plugin to just annotate one model at a time?

like image 477
randombits Avatar asked Jul 29 '10 20:07

randombits


Video Answer


1 Answers

I'm looking at the annotate 2.0.0 source and the only options to the rake task are some basic switches. It does not accept any other arguments or switches. I would guess that you're out of luck for the old-fashioned way.

It's a really simple gem. You could always make the modification yourself and submit it back to the project. Open source has its advantages. =]

like image 149
Sniggerfardimungus Avatar answered Sep 17 '22 05:09

Sniggerfardimungus