lib/generators/outboxable/install_generator.rb in outboxable-1.0.5 vs lib/generators/outboxable/install_generator.rb in outboxable-1.0.6
- old
+ new
@@ -3,11 +3,11 @@
include Rails::Generators::Migration
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.')
end