-
-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bundle console cannot be started once acts_as_list required #386
Comments
That's interesting. By the looks of the error message Try including ActiveSupport and see how you get on. I guess since we're now using ActiveSupport we should add that as a dependency. |
Actually |
It is installed. The only way to make this work is changing the
Adding |
Sounds like it's something to do with the require order then :) If you manage to figure it out let me know :) We have had problems like this in the past, so it's worth checking through the old Issues and PR's. It's certainly a strange one. |
Did some initial Bundler debugging, in the
Using this Gemfile:
I see that the |
One fix I could come up with is adding a # frozen_string_literal: true
require 'active_support/inflector'
module ActiveRecord::Acts::List::ScopeMethodDefiner #:nodoc:
extend ActiveSupport::Inflector Would that be an acceptable fix? If so, I can open a pull request for this. |
Thanks for that @rdvdijk. That seems like a reasonable solution :) |
Using this minimal
Gemfile
, thebundle console
command fails:Running:
Results in a large Bundler error message, the backtrace section shows:
As the backtrace shows, this is using Ruby 2.7.1, Bundler 2.1.4 and
acts_as_list
1.0.2. I've tried older versions of ActiveRecord and Bundler, butbundle console
always fails.The text was updated successfully, but these errors were encountered: