I'm having some differing behavior in my development and staging app. The same action that works locally gets this on staging (production env)
#<NameError: uninitialized constant #<Class:0x0000557d7c986aa8>::Report>
/app/app/models/cart.rb:26:in `add_product'
/app/app/controllers/cart_controller.rb:10:in `add_remove'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.2.0/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
I don't really understand what is going on here. Perhaps a different RUBY_VERSION is loaded in the console on staging?
In my Gemfile I have:
ruby '2.3.6'
UPDATE:
I've gone back and checked my local logs, and see that the errors there also show ruby 2.3.0:
/Users/myuser/.gem/ruby/2.3.0/gems/actionpack-5.2.0/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
I'm clearly misunderstanding something. What am missing? Are gems always run from the lowest patch version of ruby?