Jesper Rønn-Jensen Jesper Rønn-Jensen - 1 year ago 77
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)

Answer Source

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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download