active_record-annotate
active_record-annotate copied to clipboard
ActiveRecord models annotator based on rails' schema dumper
Addresses #20 Background: I'm extending Rails load paths to load models from directories other than `app`. It wasn't possible to annotate models outside the default `app/models` directory, so I've implemented...
I use a concept called [parts](http://tomrothe.de/posts/rails_parts.html), and I've decided to place some models there. The gem won't annotate them, as they're outside `app` directory. Should probably consider all possible load...
ActiveRecord::SchemaDumper used in [ActiveRecord::Annotate::Dumper](https://github.com/7even/active_record-annotate/blob/master/lib/active_record/annotate/dumper.rb#L19) doesn't work with custom PG enums. It would be great to have *some way* to configure the class to allow easier integration with gems like `schema_plus`...
Solves #11 - Dont annotate errors to files - Squelch errors by default - Use `config.debug = true` to puts errors Note: this is untested so far I merely wrote...
Something to note its pretty awkward to use both underscore and dash in the gem name. Usually that denotes a plugin for a gem and even then I find it...
We need some other way to ignore certain files. Maybe we could have an `.annotate_ignore` file in the project root where we list these?
In some of my Rails apps I connect to multiple databases. In that way I define my models like so: ```ruby class Project < OtherDatabaseModels self.table_name = "other_db.projects" end ```...
I don't want to see error messages being annotated on the top of classes that failed. This happens commonly on parent classes such as ApplicationRecord or other custom ParentModel. Examples:...