Specifying the range of supported Rails versions in a project

Posted by Tomas Sedovic on Stack Overflow See other posts from Stack Overflow or by Tomas Sedovic
Published on 2010-06-18T15:08:41Z Indexed on 2010/06/18 15:33 UTC
Read the original article Hit count: 211

The config/environment.rb of my rails project contains this line:

RAILS_GEM_VERSION = '>= 2.3.2' unless defined? RAILS_GEM_VERSION

Which makes sure that only Rails of version 2.3.2 or greater will be used to run this app.

Is there a way of specifying both the lower and the upper boundary at the same time? So that it would run, say, only on versions higher than 2.3.1 and lower than 2.3.6?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about configuration