Class: Vehicles::Railtie

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

Overview

Wires the gem into Rails without forcing anything: it only registers the ActiveModel validators, and only once ActiveRecord/ActiveModel is loaded. There’s no engine, no migration, no table — the data lives in the bundled JSON, so there’s nothing to install.