Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update single rails engine (gem) within a rails app?

There are multi rails engines (gem) in our rails 3.2.12 app. When there is an update to a rails engine, the version is updated as well. Then bundle update engine_name to update the engine. However when bundle update engine_name, there is an error about ActiveModel which is not supposed to be updated. What's the right way to update a single rails engine gem?

like image 394
user938363 Avatar asked Nov 29 '25 19:11

user938363


1 Answers

bundle update --source=engine_name

This will update only your 'engine_name' from source, and will try to use versions of all other gems as defined in Gemfile.lock already.

like image 100
Rahul garg Avatar answered Dec 02 '25 08:12

Rahul garg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!