Skip to content
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

The gem breaks the lazy loading of ActionView::Base #533

Closed
2 of 9 tasks
maximerety opened this issue Jan 18, 2024 · 1 comment
Closed
2 of 9 tasks

The gem breaks the lazy loading of ActionView::Base #533

maximerety opened this issue Jan 18, 2024 · 1 comment

Comments

@maximerety
Copy link
Contributor

Bug report for Cloudinary Ruby SDK

Describe the bug in a sentence or two.

When the gem is loaded in a Rails application, it breaks the lazy loading of ActionView::Base.

Issue Type (Can be multiple)

  • Build - Cannot install or import the SDK
  • Performance - Performance issues
  • Behaviour - Functions are not working as expected (such as generate URL)
  • Documentation - Inconsistency between the docs and behaviour
  • Other - Triggers an undesired side-effect in the loading of a Rails application

Steps to reproduce

Create a fresh Rails app in a shell, and add the cloudinary gem to the Gemfile:

rails new cloudinary-issue && cd cloudinary-issue

cat <<RUBY >> Gemfile
gem 'cloudinary'
RUBY

bundle install

Then open a rails console (bin/rails console) and check if the lazy loading of ActionView::Base is preserved or not:

ActionView.autoload?(:Base)
# => "action_view/base" => means that the lazy loading is preserved => success
# => nil                => means that the class is already loaded   => failure

Error screenshots or Stack Trace (if applicable)

Operating System

  • Linux
  • Windows
  • macOS
  • All

Environment and Libraries (fill in the version numbers)

  • Cloudinary Ruby SDK version - Any, including latest: 1.28.0
  • Ruby Version - Any
  • Rails Version - Any
  • Other Libraries (Carrierwave, ActiveStorage, etc) - 0.0.0

Repository

If possible, please provide a link to a reproducible repository that showcases the problem

@const-cloudinary
Copy link
Contributor

Fixed in #532

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants