Skip to content

Commit

Permalink
Replace annotate gem with Rails 8-compatible annotaterb
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson committed Nov 8, 2024
1 parent 60ccf22 commit fde925b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions config/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ action_mailer:
description: "Configure Action Mailer for testing"
requires: action_mailer

annotate:
prompt: "Annotate Models"
description: "Install annotate gem to auto-generate schema annotations"
annotaterb:
prompt: "AnnotateRb"
description: "Install annotaterb gem to auto-generate schema annotations"
requires: active_record

basic_auth:
Expand Down
4 changes: 0 additions & 4 deletions lib/nextgen/generators/annotate.rb

This file was deleted.

7 changes: 7 additions & 0 deletions lib/nextgen/generators/annotaterb.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

say_git "Install the annotaterb gem"
install_gem "annotaterb", group: :development

say_git "Run the annotaterb installer"
generate "annotate_rb:install"

0 comments on commit fde925b

Please sign in to comment.