annotaterb icon indicating copy to clipboard operation
annotaterb copied to clipboard

A Ruby Gem that adds annotations to your Rails models and route files.

Results 69 annotaterb issues
Sort by recently updated
recently updated
newest added

[Dynamic fixtures with ERB](https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html) are available in Rails for very long. It allows including ERB in fixture YAML files. `annotaterb models` runs into a `Psych::SyntaxError` for [Dynamic fixtures with ERB]....

I've tried to ignore several columns, and have not had any success with any syntax that seems plausible. Since there are other settings that have (empty) arrays, it seemed like...

I would love to be able to customize a few more things about the annotations. 1. Instead of adding another line for `# Schema version: 20240510213625`, what if it could...

This PR adds another model with a foreign key/reference to another model to the dummyapp.

We often want to specify multiple directories in `root_dir` and `model_dir`. For example, when using engines, packs-rails, etc. * https://github.com/rubyatscale/packs-rails * https://guides.rubyonrails.org/engines.html This commit supports the glob pattern with these...

When running: `bundle exec annotaterb models ` error: ``` Unable to process app/models/internal.rb: uninitialized constant Zeitwerk::VERSION /Users/username/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/annotaterb-4.14.0/lib/annotate_rb/model_annotator/zeitwerk_class_getter.rb:105:in `supports_cpath?' /Users/username/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/annotaterb-4.14.0/lib/annotate_rb/model_annotator/zeitwerk_class_getter.rb:25:in `call' /Users/username/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/annotaterb-4.14.0/lib/annotate_rb/model_annotator/zeitwerk_class_getter.rb:8:in `call' /Users/username/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/annotaterb-4.14.0/lib/annotate_rb/model_annotator/model_class_getter.rb:14:in `call' /Users/username/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/annotaterb-4.14.0/lib/annotate_rb/model_annotator/annotation_decider.rb:18:in `annotate?' /Users/username/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/annotaterb-4.14.0/lib/annotate_rb/model_annotator/project_annotator.rb:16:in `block in annotate'...

Has anyone experienced a performance regression relative to the pre-fork? With the same configuration and a stock run of `bundle exec annotaterb models`, I'm seeing performance go from roughly 8...

When upgrading rails project with 200+ models from annotate to this gem (thanks for creating and maintaining it!), we noticed that annotation became a lot slower. We managed to pinpoint...

When generating simple indexes, there is no identifier for unique indexes. This PR updates the `simple_index` option to annotate with `uniquely indexed` for unique indexes. Screenshot from a project I...

This PR enhances the `--model-dir` option in the `models` command to support glob patterns, providing more flexibility in specifying model directories. **Problem:** Currently, the `--model-dir` option only accepts a comma-separated...