Class: Whatsapp::Railtie

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

Overview

Registers rake whatsapp:install:webhook with the host Rails app. Only defined when Rails is already loaded — this gem has no Rails dependency of its own. Deliberately excluded from Zeitwerk (see lib/ruby/whatsapp.rb) and required eagerly instead: Rails discovers Railtie subclasses at boot by class definition, so autoloading it lazily would be too late.