Skip to content

Instantly share code, notes, and snippets.

From 99464feddc512c061303ea33ef5b6b5c1a9ae7ed Mon Sep 17 00:00:00 2001
From: Ripta Pasay <github@r8y.org>
Date: Wed, 3 Dec 2008 11:37:45 -0500
Subject: [PATCH] Add failing lexical lookup test case
---
activesupport/test/inflector_test.rb | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb
@AquaGeek
AquaGeek / updated_validations.diff
Created May 13, 2011 03:23
Rails Lighthouse ticket #873
From a30e32aab00f9f1497e25361217399490bc01ec8 Mon Sep 17 00:00:00 2001
From: Sean Huber <shuber@me.com>
Date: Wed, 20 Aug 2008 11:29:55 -0700
Subject: [PATCH] validates_exclusion_of can now accept a symbol representing an instance method or a proc object as the :in/:within option
---
.../lib/active_model/validations/exclusion.rb | 25 +++++++++++++--
activerecord/lib/active_record/validations.rb | 31 +++++++++++++++----
activerecord/test/cases/validations_test.rb | 31 ++++++++++++++++++++
3 files changed, 76 insertions(+), 11 deletions(-)
From cf3d61ca563c81adfca8ecf02a8d71f27e133e11 Mon Sep 17 00:00:00 2001
From: Dwayne Litzenberger <dlitz@patientway.com>
Date: Thu, 16 Dec 2010 17:35:30 -0500
Subject: [PATCH] bug 1210: strip table name affixes when dumping schema
This prevents double affixes when invoking db:test:prepare with
table_name_prefix or table_name_suffix.
---
activerecord/lib/active_record/schema_dumper.rb | 21 ++++++++++++++++-----
activerecord/test/cases/schema_dumper_test.rb | 19 +++++++++++++++++++
From 062c30d12587015c6373dd78336d7a43d32a086e Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Jakub=20Ku=C5=BAma?= <qoobaa@gmail.com>
Date: Sat, 22 Nov 2008 14:04:12 +0100
Subject: [PATCH] check_box_tag should behave like radio_button_tag
---
.../lib/action_view/helpers/form_tag_helper.rb | 20 +++++++++-----------
actionpack/test/template/form_tag_helper_test.rb | 8 ++++----
2 files changed, 13 insertions(+), 15 deletions(-)
@AquaGeek
AquaGeek / beginning_of_hour-2-3.diff
Created May 14, 2011 02:10
Rails Lighthouse ticket #2114
From 26d9b864009b522e1fa87245d76c0a39a8b148ea Mon Sep 17 00:00:00 2001
From: Matias Flores <mflores@atlanware.com>
Date: Sun, 27 Sep 2009 10:59:26 -0300
Subject: [PATCH] Adding beginning_of_our and end_of_hour
---
.../core_ext/date_time/calculations.rb | 10 ++++++++
.../active_support/core_ext/time/calculations.rb | 10 ++++++++
activesupport/test/core_ext/date_time_ext_test.rb | 8 ++++++
activesupport/test/core_ext/time_ext_test.rb | 24 ++++++++++++++++++++
@AquaGeek
AquaGeek / 2503-add_case_sensitive_db.diff
Created May 14, 2011 02:17
Rails Lighthouse ticket #2503
From e518a6ca32b506a76d68614312f803bcb55296da Mon Sep 17 00:00:00 2001
From: Phil Ross <phil.ross@gmail.com>
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(-)
@AquaGeek
AquaGeek / polymorphic-sti-fix.diff
Created May 14, 2011 02:17
Rails Lighthouse ticket #2594
From a18537cae85a740d9eca32e359adc8ce74ae02d4 Mon Sep 17 00:00:00 2001
From: Ruy Asan <ruyasan@gmail.com>
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 +++-
@AquaGeek
AquaGeek / adapted_fix_for_2907.diff
Created May 14, 2011 02:17
Rails Lighthouse ticket #2907
From 9c58b3d6f6846896e2bd17c2e5d0fdb9b7d82006 Mon Sep 17 00:00:00 2001
From: Tanja Otto <tanja.otto@sales-lentz.lu>
Date: Sun, 16 May 2010 21:03:14 +0200
Subject: [PATCH 1/2] adapted testcases for #2907 of Balint Erdi because apply of his diff doesn't work in master [#2907 state:commited]
---
.../associations/belongs_to_associations_test.rb | 6 +++---
activerecord/test/cases/base_test.rb | 2 +-
activerecord/test/cases/reflection_test.rb | 6 +++---
activerecord/test/models/reply.rb | 2 +-
@AquaGeek
AquaGeek / truncate.diff
Created May 14, 2011 01:59
Rails Lighthouse ticket #1597
From d09ccf1cc0f1426532efdf537a3b8ed73fb5271b Mon Sep 17 00:00:00 2001
From: Peter Wagenet <peter.wagenet@gmail.com>
Date: Thu, 18 Dec 2008 14:41:15 -0500
Subject: [PATCH] Truncate counts HTML special characters in omission as a single character
---
actionpack/lib/action_view/helpers/text_helper.rb | 3 ++-
actionpack/test/template/text_helper_test.rb | 1 +
2 files changed, 3 insertions(+), 1 deletions(-)
@AquaGeek
AquaGeek / xml_attributes.diff
Created May 14, 2011 02:02
Rails Lighthouse ticket #1598
From eadd6bf4579a64260a5a051b7c71340f94d27710 Mon Sep 17 00:00:00 2001
From: Peter Wagenet <peter.wagenet@gmail.com>
Date: Thu, 18 Dec 2008 13:00:01 -0500
Subject: [PATCH] Attribute Preserving Hash
---
activeresource/lib/active_resource/formats.rb | 1 +
.../formats/attribute_preserving_xml_format.rb | 11 ++++++
activeresource/test/format_test.rb | 18 ++++++++++
.../active_support/core_ext/hash/conversions.rb | 20 +++++++----