From de7c30452417a81121434add67f29e6cb6742b72 Mon Sep 17 00:00:00 2001 From: Muhammad Nawzad Date: Tue, 2 Apr 2024 14:50:27 +0300 Subject: [PATCH] Fixes initialize --- lib/generators/outboxable/install_generator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/generators/outboxable/install_generator.rb b/lib/generators/outboxable/install_generator.rb index caa3062..d1a7c09 100644 --- a/lib/generators/outboxable/install_generator.rb +++ b/lib/generators/outboxable/install_generator.rb @@ -5,8 +5,8 @@ class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../../templates', __dir__) class_option :orm, type: :string, default: 'activerecord' - def initialize - super + def initialize(*args) + super(*args) @orm = options[:orm] || 'activerecord' %w[activerecord mongoid].include?(@orm) || raise(ArgumentError, 'Invalid ORM. Only ActiveRecord and Mongoid are supported.')