Guest User

Untitled

a guest
Mar 14th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. if version = defined?(RAILS_GEM_VERSION) ? RAILS_GEM_VERSION : rails_gem_version
  2. rails_gem = Gem.cache.search('rails', "=#{version}").first
  3.  
  4. if rails_gem
  5. gem "rails", "=#{version}"
  6. require rails_gem.full_gem_path + '/lib/initializer'
  7. else
  8. STDERR.puts %(Cannot find gem for Rails =#{version}:
  9. Install the missing gem with 'gem install -v=#{version} rails', or
  10. change environment.rb to define RAILS_GEM_VERSION with your desired version.
  11. )
  12. exit 1
  13. end
Add Comment
Please, Sign In to add comment