This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if RAILS_GEM_VERSION == '2.3.2' | |
module ActionController | |
module Routing | |
class RouteSet | |
def extract_request_environment(request) | |
method = request.method | |
if method == :post | |
params_key = 'action_controller.request.request_parameters' | |
if request && request.env && request.env.include?(params_key) && request.env[params_key].include?('_method') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From e518a6ca32b506a76d68614312f803bcb55296da Mon Sep 17 00:00:00 2001 | |
From: Phil Ross <[email protected]> | |
Date: Sun, 31 May 2009 15:13:10 +0100 | |
Subject: [PATCH] Added a :case_sensitive => :db option to validates_uniqueness_of, which uses the database's case-sensitivity mode for comparisons. | |
--- | |
.../lib/active_record/validations/uniqueness.rb | 11 +++++++++-- | |
.../validations/uniqueness_validation_test.rb | 18 ++++++++++++++++++ | |
2 files changed, 27 insertions(+), 2 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 8c81356ebc4d5397468e285935d3356be7999033 Mon Sep 17 00:00:00 2001 | |
From: Christos Zisopoulos <[email protected]> | |
Date: Sat, 18 Apr 2009 19:40:13 +0200 | |
Subject: [PATCH] Explicity require test/unit in active_support/test_case in order to always run test suites | |
--- | |
activesupport/lib/active_support/test_case.rb | 1 + | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 5bc866f77303144a0b5ed55141152c270283e24a Mon Sep 17 00:00:00 2001 | |
From: John Small <[email protected]> | |
Date: Fri, 24 Apr 2009 17:39:08 +0100 | |
Subject: [PATCH] This patch fixes lighthouse ticket #2521. | |
People using ActiveResource & REST to integrate with other systems need to be able to control the default dasherize behavior of Hash.to_xml. | |
Currently there is no test for a default value, but existing code asssumes it's true. This patch adds tests for the default value and adds | |
cattr_accessor for :dasherize_xml and :camelize_xml. These class attributes set the defaults for :dasherize and :camelize in rename_keys inside | |
Hash#to_xml. The tests have been changed to separate out the testing of the parameter options for :camelize | |
and :dasherize so that we only test one thing at a time. We also test default values for :camelize_xml and :dasherize_xml. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From cbdca61d1f226d57bb2cf94f5d53af86d0eed294 Mon Sep 17 00:00:00 2001 | |
From: Daniel Higginbotham <[email protected]> | |
Date: Tue, 28 Apr 2009 10:16:40 -0400 | |
Subject: [PATCH] quick easy fix | |
--- | |
activerecord/lib/active_record/associations.rb | 140 ++++++++++++------------ | |
1 files changed, 70 insertions(+), 70 deletions(-) | |
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a18537cae85a740d9eca32e359adc8ce74ae02d4 Mon Sep 17 00:00:00 2001 | |
From: Ruy Asan <[email protected]> | |
Date: Fri, 1 May 2009 13:09:29 -0700 | |
Subject: [PATCH] Fixed bug with polymorphic has_one :as pointing to an STI record | |
--- | |
.../associations/has_one_association.rb | 2 +- | |
.../associations/has_one_associations_test.rb | 9 ++++++++- | |
activerecord/test/fixtures/organizations.yml | 4 +++- | |
activerecord/test/fixtures/sponsors.yml | 4 +++- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 49ab68f8f14511c05a5c583341b6a1ce864a32e1 Mon Sep 17 00:00:00 2001 | |
From: Jarl Friis <jarl@hermes.(none)> | |
Date: Thu, 14 May 2009 11:55:51 +0200 | |
Subject: [PATCH] Test that demonstrates lack of validation | |
--- | |
activerecord/test/cases/validations_test.rb | 14 ++++++++++++++ | |
1 files changed, 14 insertions(+), 0 deletions(-) | |
diff --git a/activerecord/test/cases/validations_test.rb b/activerecord/test/cases/validations_test.rb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 19e70500bbc31827f9db350e0118a611f8f7f79d Mon Sep 17 00:00:00 2001 | |
From: Alexander Simonov <[email protected]> | |
Date: Sun, 17 May 2009 19:26:56 +0300 | |
Subject: [PATCH] Add support for nested SQL queries | |
--- | |
activerecord/lib/active_record/base.rb | 7 ++++++- | |
activerecord/test/cases/base_test.rb | 27 +++++++++++++++++++++++++++ | |
activerecord/test/models/topic.rb | 2 ++ | |
3 files changed, 35 insertions(+), 1 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf xhr_put_id | |
if [ "$1" = "git" ]; then | |
ruby /home/rubys/git/rails/railties/bin/rails xhr_put_id | |
cd xhr_put_id | |
ln -s /home/rubys/git/rails vendor/rails | |
else | |
rails xhr_put_id | |
cd xhr_put_id | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 01664bc434fcffd799e78c8b3c7e9c73dc5d98bd Mon Sep 17 00:00:00 2001 | |
From: David Haslem <[email protected]> | |
Date: Wed, 20 Oct 2010 12:36:24 -0400 | |
Subject: [PATCH] Move i18n and builder dependency to activesupport. [#2672 state:resolved] | |
--- | |
actionpack/actionpack.gemspec | 2 -- | |
activemodel/activemodel.gemspec | 2 -- | |
activesupport/activesupport.gemspec | 2 ++ | |
3 files changed, 2 insertions(+), 4 deletions(-) |