Module: RailsGraph
- Defined in:
- lib/rails_graph.rb,
lib/rails_graph/error.rb,
lib/rails_graph/railtie.rb,
lib/rails_graph/version.rb,
lib/rails_graph/inspector.rb,
lib/rails_graph/graph/node.rb,
lib/rails_graph/graph/graph.rb,
lib/rails_graph/graph/entity.rb,
lib/rails_graph/configuration.rb,
lib/rails_graph/exporters/base.rb,
lib/rails_graph/exporters/json.rb,
lib/rails_graph/helpers/models.rb,
lib/rails_graph/exporters/neo4j.rb,
lib/rails_graph/graph/nodes/gem.rb,
lib/rails_graph/exporters/cypher.rb,
lib/rails_graph/graph/nodes/pack.rb,
lib/rails_graph/graph/nodes/model.rb,
lib/rails_graph/graph/nodes/table.rb,
lib/rails_graph/graph/nodes/column.rb,
lib/rails_graph/graph/relationship.rb,
lib/rails_graph/commands/build_graph.rb,
lib/rails_graph/graph/nodes/database.rb,
lib/rails_graph/helpers/associations.rb,
lib/rails_graph/commands/export_graph.rb,
lib/rails_graph/helpers/options_parser.rb,
lib/rails_graph/commands/builders/packs.rb,
lib/rails_graph/commands/builders/models.rb,
lib/rails_graph/graph/nodes/virtual_model.rb,
lib/rails_graph/graph/nodes/abstract_model.rb,
lib/rails_graph/commands/builders/databases.rb,
lib/rails_graph/graph/relationships/attribute.rb,
lib/rails_graph/commands/builders/associations.rb,
lib/rails_graph/commands/builders/gems_builder.rb,
lib/rails_graph/graph/relationships/pack_model.rb,
lib/rails_graph/graph/relationships/association.rb,
lib/rails_graph/graph/relationships/inheritance.rb,
lib/rails_graph/graph/relationships/pack_dependency.rb
Defined Under Namespace
Modules: Commands, Exporters, Graph, Helpers
Classes: Configuration, Error, Inspector, Railtie
Constant Summary
collapse
- VERSION =
"0.4.0"
Class Method Summary
collapse
Class Method Details
.build_graph(configuration: nil) ⇒ Object
.configuration ⇒ Object
27
28
29
|
# File 'lib/rails_graph.rb', line 27
def configuration
@configuration ||= Configuration.new
end
|
31
32
33
|
# File 'lib/rails_graph.rb', line 31
def configure
yield configuration if block_given?
end
|
.export_graph(graph:, **opts) ⇒ Object
23
24
25
|
# File 'lib/rails_graph.rb', line 23
def export_graph(graph:, **opts)
Commands::ExportGraph.call(graph: graph, **opts)
end
|
.load_entities ⇒ Object
15
16
17
|
# File 'lib/rails_graph.rb', line 15
def load_entities
Rails.application.eager_load!
end
|