mirror of
https://github.com/ditkrg/outboxable.git
synced 2026-01-22 22:06:47 +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__)
|
source_root File.expand_path('../../templates', __dir__)
|
||||||
class_option :orm, type: :string, default: 'activerecord'
|
class_option :orm, type: :string, default: 'activerecord'
|
||||||
|
|
||||||
def initialize
|
def initialize(*args)
|
||||||
super
|
super(*args)
|
||||||
|
|
||||||
@orm = options[:orm] || 'activerecord'
|
@orm = options[:orm] || 'activerecord'
|
||||||
%w[activerecord mongoid].include?(@orm) || raise(ArgumentError, 'Invalid ORM. Only ActiveRecord and Mongoid are supported.')
|
%w[activerecord mongoid].include?(@orm) || raise(ArgumentError, 'Invalid ORM. Only ActiveRecord and Mongoid are supported.')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user