1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

require "rubygems" is obsolete in Ruby 1.9.3

This commit is contained in:
Kornelius Kalnbach 2012-05-13 14:47:25 +02:00
parent aeac0bf620
commit d8c1949684
9 changed files with 0 additions and 12 deletions

View file

@ -59,7 +59,6 @@ Now we'll create a simple "Hello World" application that uses the +titleize+ met
*hello_world.rb:*
<ruby>
require 'rubygems'
require 'active_support/core_ext/string/inflections'
require 'rack'
@ -94,7 +93,6 @@ Now we'll create the same "Hello World" application in Sinatra.
*hello_world.rb:*
<ruby>
require 'rubygems'
require 'action_view'
require 'sinatra'

View file

@ -95,7 +95,6 @@ h4. Dirty
An object becomes dirty when an object is gone through one or more changes to its attributes and not yet saved. This gives the ability to check whether an object has been changed or not. It also has attribute based accessor methods. Lets consider a Person class with attributes first_name and last_name
<ruby>
require 'rubygems'
require 'active_model'
class Person

View file

@ -1,4 +1,3 @@
# bust gem prelude
require 'rubygems' unless defined? Gem
require 'bundler'
Bundler.setup

View file

@ -19,7 +19,6 @@ else
end
end
require 'rubygems' if ARGV.include?("--dev")
require 'rails/generators'
require 'rails/generators/rails/app/app_generator'

View file

@ -1,5 +1,3 @@
require 'rubygems' if ARGV.include?("--dev")
if ARGV.first != "new"
ARGV[0] = "--help"
else

View file

@ -1,5 +1,3 @@
require 'rubygems'
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

View file

@ -1,4 +1,3 @@
require 'rubygems'
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
if File.exist?(gemfile)

View file

@ -1,3 +1,2 @@
require 'rubygems'
require 'minitest/autorun'
require 'active_support'

View file

@ -7,7 +7,6 @@ ENV['NO_RELOAD'] ||= '1'
ENV['RAILS_ENV'] ||= 'development'
GC.enable_stats
require 'rubygems'
Gem.source_index
require 'benchmark'