Class: GraphWeaver::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/graph_weaver/railtie.rb

Overview

Rails wiring, so the conventional layout needs no ceremony:

  • rake tasks: Rails.application.load_tasks collects every Railtie's rake_tasks block, so graph_weaver:* tasks appear with no Rakefile edit. (Outside Rails there is no task-discovery hook — add require "graph_weaver/tasks" to your Rakefile.)
  • generated modules: required at boot when generated_path exists, after config/initializers (registrations and GraphWeaver.client= run first — block-built type helpers must exist before the files that include them load). load_generated! stays idempotent, so calling it yourself too is harmless.