Skip to content

Commit

Permalink
Require rails/generators explicitly
Browse files Browse the repository at this point in the history
This resolves an issue where Rails::Generators::Base is not autoloaded leading to an error: NoMethodError:  undefined method `subclasses' for Rails::Generators:Module
The require for rails/generators/actions isn't needed because rails/generators autoloads it.
  • Loading branch information
cjcolvar authored Feb 22, 2023
1 parent 7617628 commit ec18cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/hyrax/database_migrator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
require 'rails/generators/actions'
require 'rails/generators'
require 'rails/generators/active_record'

module Hyrax
Expand Down

0 comments on commit ec18cb2

Please sign in to comment.