File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 8
8
option :generator do
9
9
long "--generator=Generator"
10
10
desc "Generator to use (graphviz or mermaid). Defaults to graphviz."
11
+ default "graphviz"
11
12
end
12
13
13
14
option :title do
@@ -164,7 +165,8 @@ def start
164
165
165
166
def initialize ( path , options )
166
167
@path , @options = path , options
167
- require "rails_erd/diagram/graphviz" if options . generator == :graphviz
168
+ require "rails_erd/diagram/graphviz" if options [ :generator ] == 'graphviz'
169
+ require "rails_erd/diagram/mermaid" if options [ :generator ] == 'mermaid'
168
170
end
169
171
170
172
def start
@@ -202,7 +204,7 @@ def load_application
202
204
end
203
205
204
206
def generator
205
- if options . generator == : mermaid
207
+ if options [ : generator] == ' mermaid'
206
208
RailsERD ::Diagram ::Mermaid
207
209
else
208
210
RailsERD ::Diagram ::Graphviz
Original file line number Diff line number Diff line change @@ -130,11 +130,26 @@ def models
130
130
def rails_models
131
131
%w(
132
132
ActionMailbox::InboundEmail
133
+ ActionText::EncryptedRichText
134
+ ActionText::RichText
133
135
ActiveStorage::Attachment
134
136
ActiveStorage::Blob
135
137
ActiveStorage::VariantRecord
136
- ActionText::RichText
137
- ActionText::EncryptedRichText
138
+ SolidCable::Message
139
+ SolidCache::Entry
140
+ SolidQueue::BlockedExecution
141
+ SolidQueue::ClaimedExecution
142
+ SolidQueue::Execution
143
+ SolidQueue::FailedExecution
144
+ SolidQueue::Job
145
+ SolidQueue::Message
146
+ SolidQueue::Pause
147
+ SolidQueue::Process
148
+ SolidQueue::ReadyExecution
149
+ SolidQueue::RecurringExecution
150
+ SolidQueue::RecurringTask
151
+ SolidQueue::ScheduledExecution
152
+ SolidQueue::Semaphore
138
153
) . map { |model | Object . const_get ( model ) rescue nil } . compact
139
154
end
140
155
You can’t perform that action at this time.
0 commit comments