Skip to content

Commit

Permalink
Fixes initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadnawzad committed Apr 2, 2024
1 parent a8765e1 commit de7c304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/outboxable/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down

0 comments on commit de7c304

Please sign in to comment.