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.')