From f6484e63c1678712cd3f9be874bdb011598d2454 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 31 Mar 2008 04:59:23 +0000 Subject: rename config/initializers/new_in_rails_3.rb to new_rails_defaults.rb git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/configs/initializers/new_in_rails_3.rb | 5 ----- railties/configs/initializers/new_rails_defaults.rb | 5 +++++ .../lib/rails_generator/generators/applications/app/app_generator.rb | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 railties/configs/initializers/new_in_rails_3.rb create mode 100644 railties/configs/initializers/new_rails_defaults.rb (limited to 'railties') diff --git a/railties/configs/initializers/new_in_rails_3.rb b/railties/configs/initializers/new_in_rails_3.rb deleted file mode 100644 index 0cc1993ed9..0000000000 --- a/railties/configs/initializers/new_in_rails_3.rb +++ /dev/null @@ -1,5 +0,0 @@ -# These settins change the behavior of Rails 2 apps and will be defaults -# for Rails 3. You can remove this initializer when Rails 3 is released. - -# Only save the attributes that have changed since the record was loaded. -ActiveRecord::Base.partial_updates = true diff --git a/railties/configs/initializers/new_rails_defaults.rb b/railties/configs/initializers/new_rails_defaults.rb new file mode 100644 index 0000000000..0cc1993ed9 --- /dev/null +++ b/railties/configs/initializers/new_rails_defaults.rb @@ -0,0 +1,5 @@ +# These settins change the behavior of Rails 2 apps and will be defaults +# for Rails 3. You can remove this initializer when Rails 3 is released. + +# Only save the attributes that have changed since the record was loaded. +ActiveRecord::Base.partial_updates = true diff --git a/railties/lib/rails_generator/generators/applications/app/app_generator.rb b/railties/lib/rails_generator/generators/applications/app/app_generator.rb index 359726ff01..85c417f7cd 100644 --- a/railties/lib/rails_generator/generators/applications/app/app_generator.rb +++ b/railties/lib/rails_generator/generators/applications/app/app_generator.rb @@ -62,7 +62,7 @@ class AppGenerator < Rails::Generator::Base # Initializers m.template "configs/initializers/inflections.rb", "config/initializers/inflections.rb" m.template "configs/initializers/mime_types.rb", "config/initializers/mime_types.rb" - m.template "configs/initializers/new_in_rails_3.rb", "config/initializers/new_in_rails_3.rb" + m.template "configs/initializers/new_rails_defaults.rb", "config/initializers/new_rails_defaults.rb" # Environments m.file "environments/boot.rb", "config/boot.rb" -- cgit v1.2.3