Jesper Rønn-Jensen Jesper Rønn-Jensen - 1 month ago 4x
Ruby Question

How can my Rails app accept RAILS_GEM_VERSION minor version bumps

My rails project has this line in /config/environment.rb

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION

As we now have 2.3.5 as the most recent upgrade, is there a way to make my environment.rb accept minor version bumps?

(without I have to explicitly change 2.3.2 to 2.3.5)


No, there isn't.

You application needs to use a specific Rails version mostly because different tiny releases might require additional steps to upgrade the framework such as changes to boot.rb.

$ rake rails:update