From a1c893ce28fed53cea010c918956c1bc9875aedd Mon Sep 17 00:00:00 2001 From: rgarcia Date: Thu, 15 Sep 2016 14:16:45 +0200 Subject: [PATCH] updates binstubs for rails 4 --- bin/rails | 19 +++---------------- bin/rake | 19 +++---------------- 2 files changed, 6 insertions(+), 32 deletions(-) diff --git a/bin/rails b/bin/rails index 0a7aba05e..5191e6927 100755 --- a/bin/rails +++ b/bin/rails @@ -1,17 +1,4 @@ #!/usr/bin/env ruby -# frozen_string_literal: true -# -# This file was generated by Bundler. -# -# The application 'rails' is installed as part of a gem, and -# this file is here to facilitate running it. -# - -require "pathname" -ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) - -require "rubygems" -require "bundler/setup" - -load Gem.bin_path("railties", "rails") +APP_PATH = File.expand_path('../../config/application', __FILE__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/bin/rake b/bin/rake index 486010f46..17240489f 100755 --- a/bin/rake +++ b/bin/rake @@ -1,17 +1,4 @@ #!/usr/bin/env ruby -# frozen_string_literal: true -# -# This file was generated by Bundler. -# -# The application 'rake' is installed as part of a gem, and -# this file is here to facilitate running it. -# - -require "pathname" -ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) - -require "rubygems" -require "bundler/setup" - -load Gem.bin_path("rake", "rake") +require_relative '../config/boot' +require 'rake' +Rake.application.run