Removes extra argument

This commit is contained in:
Muhammad Nawzad 2023-12-06 13:45:08 +03:00
parent 4de6891945
commit 13b2013f3f
No known key found for this signature in database
GPG Key ID: B954B6AAE33940B2

View File

@ -5,8 +5,8 @@ module Outboxable
source_root File.expand_path('../../templates', __dir__)
class_option :orm, type: :string, default: 'activerecord'
def initialize(*)
super(*)
def initialize
super
@orm = options[:orm] || 'activerecord'
%w[activerecord mongoid].include?(@orm) || raise(ArgumentError, 'Invalid ORM. Only ActiveRecord and Mongoid are supported.')