daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Mar 14th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top