-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
NoMethodError when using with Rails 6.0.0.beta2 #3116
Comments
I am experiencing the same. Although I am using 2.6.1p33 (2019-01-30 revision 66950) [x86_64-darwin18] I also agree that it is just isolated to the Rails Admin gem definitely. Without it the rails server with rails 6.0.0beta2 starts fine. |
Update: Tested again with Ruby 2.6.0 + Rails 6.0.0.beta3, but the result was the same. |
I haven't got any approval yet, but it looks like |
Sorry, it's still present in ActiveSupport 6.0.0.beta3. So, I wonder how we manage to get the exception this way. Anyway, replacing it with |
@SoftPro Thanks for reaching out! As an alternative, requiring ActiveSupport explicitly in auditing_adapter.rb also solved the problem for me. This should also work for ruby < 2.3 require 'active_support/core_ext/string/strip'
module RailsAdmin
module Extensions
module PaperTrail
class VersionProxy
# ...
end
class AuditingAdapter
# ...
E_VERSION_MODEL_NOT_SET = <<-EOS.to_s.strip_heredoc.freeze
# ...
EOS
# ...
end
end
end
end |
Overview
rails_admin
version1.4.2
seems to have an incompatibility issue with Rails 6.0.0.beta2.strip_heredoc
used below is causing the problem, but I haven't had enough time to investigate this issue deeply. https://github.com/sferik/rails_admin/blob/f592d68f2c611cee3733ce3f1ef1085a89a1b898/lib/rails_admin/extensions/paper_trail/auditing_adapter.rb#L40Environment
How to reproduce
Notes
bundle install --path=vendor/bundle
, but it didn't solve this issue.The text was updated successfully, but these errors were encountered: