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

Rails app crashes when eager_load is true in production #124

Closed
josephktcheung opened this issue Feb 10, 2020 · 1 comment
Closed

Rails app crashes when eager_load is true in production #124

josephktcheung opened this issue Feb 10, 2020 · 1 comment

Comments

@josephktcheung
Copy link
Contributor

josephktcheung commented Feb 10, 2020

Steps to reproduce

  1. Create a new rails app and add activity_notification and devise_token_auth to gemfile
  2. Run bin/rails generate activity_notification:install
  3. Run RAILS_ENV=production bundle e rails s
  4. App crashes with following error
lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `block in load_missing_constant': uninitialized constant ActivityNotification::VERSION

Expected behavior

It should not crash

Actual behavior

It crashes

System configuration

activity_notification gem version: 2.1.0
Rails version: 5.2.4.1
ORM (ActiveRecord, Mongoid or Dynamoid): ActiveRecord

@josephktcheung josephktcheung changed the title Rails app crashes when eager_load is true Rails app crashes when eager_load is true in production Feb 10, 2020
@simukappu
Copy link
Owner

We've merge your PR and released as v2.1.1. Thank you for your feedback and contribution!

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

No branches or pull requests

2 participants