Closed daichirata closed 7 years ago
I appreciate the PR, but I can't reproduce any problem here. I just tested a brand new Rails 5 app on Ruby 2.3, and was able to migrate successfully. Can you post the Gemfile you are using?
Thank you for me to try. My Gemfile is this.
I investigated conversantly, too. There was cause of the problem in application.rb. action_mailer was unnecessary for my application, so it was excluded.
require_relative 'boot'
# require 'rails/all'
require "rails"
require "active_model/railtie"
require "active_record/railtie"
require "action_controller/railtie"
require "action_view/railtie"
require "sprockets/railtie"
# require "active_job/railtie"
# require "action_mailer/railtie" #=> here
# require "action_cable/engine"
# require "rails/test_unit/railtie"
I think that descendants
method in this gem is dependent on require 'active_support/core_ext/class'
in action_mailer.
https://github.com/rails/rails/blob/v5.0.0/actionmailer/lib/action_mailer.rb#L29
Hi,
I noticed when using this gem with Rails 5.
descendants
method is defined by active_support. And when using, we have to require that specifically.backtrace: