mirror of
https://github.com/ditkrg/outboxable.git
synced 2026-01-22 13:56:49 +00:00
Fixes initialize
This commit is contained in:
parent
a8765e15f6
commit
de7c304524
@ -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(*args)
|
||||
super(*args)
|
||||
|
||||
@orm = options[:orm] || 'activerecord'
|
||||
%w[activerecord mongoid].include?(@orm) || raise(ArgumentError, 'Invalid ORM. Only ActiveRecord and Mongoid are supported.')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user