Class: Legate::Rails::Railtie

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

Overview

Integrates Legate with a host Rails application. Loaded via ‘require ’legate/rails’‘ (e.g. `gem ’legate’, require: ‘legate/rails’‘), never by `require ’legate’‘.

It registers the ‘legate:install` generator and exposes `config.legate`. The wiring itself (pointing the session store at ActiveRecord, reading the API key) lives in the generated `config/initializers/legate.rb`, so apps stay in control — the Railtie forces nothing.