Skip to content

Instantly share code, notes, and snippets.

From 949f3987ad337fb23d411310d39b5c43bee854e5 Mon Sep 17 00:00:00 2001
From: stopdropandrew <andrew@andrew.local>
Date: Wed, 5 Nov 2008 13:49:17 -0800
Subject: [PATCH] Count calculations respect explicit selects specified in scopes.
---
activerecord/lib/active_record/calculations.rb | 20 ++++++++++++++------
activerecord/test/cases/calculations_test.rb | 13 ++++++++++++-
2 files changed, 26 insertions(+), 7 deletions(-)
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(-)
From 328011d9841b0d4999878b582e50a6e9489a5ae5 Mon Sep 17 00:00:00 2001
From: Nathan Zook <blogger@pierian-spring.net>
Date: Thu, 4 Mar 2010 17:14:19 -0600
Subject: [PATCH] Broke out joining the quoted values in ActiveRecord::Base (to support the Oracle adapter)
---
activerecord/lib/active_record/base.rb | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
@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 +++++++----
@AquaGeek
AquaGeek / observer_on_option.diff
Created May 14, 2011 02:02
Rails Lighthouse ticket #1639
From 9616243694718347d19bcf9b25dbe69260cbb845 Mon Sep 17 00:00:00 2001
From: Gabriel Gironda <gabriel.gironda@gmail.com>
Date: Tue, 27 Jan 2009 16:33:54 -0600
Subject: [PATCH] Adds an :on and :after/:before option to AR observers
---
activerecord/lib/active_record/observer.rb | 89 ++++++++++++++++++++++------
activerecord/test/cases/observer_test.rb | 78 ++++++++++++++++++++++++
2 files changed, 148 insertions(+), 19 deletions(-)
create mode 100644 activerecord/test/cases/observer_test.rb
From 7840c194b32b33f08dbee10b9b78dc0132b92dd4 Mon Sep 17 00:00:00 2001
From: Bernerd Schaefer <bj.schaefer@gmail.com> and Veezus Kreist <mremsik@gmail.com>
Date: Tue, 23 Nov 2010 18:07:39 -0600
Subject: [PATCH] truncate uses unicode ellipsis when possible
---
actionpack/lib/action_view/helpers/text_helper.rb | 16 +++
actionpack/test/template/text_helper_test.rb | 115 +++++++++++++-------
.../lib/active_support/core_ext/string/filters.rb | 2 +-
activesupport/test/core_ext/string_ext_test.rb | 4 +
@AquaGeek
AquaGeek / has-many-counter-cache.diff
Created May 14, 2011 02:02
Rails Lighthouse ticket #1683
From 8b8991ed2abe5fc6ad2470be13994d1982d3e43c Mon Sep 17 00:00:00 2001
From: Adam Cooper <adam.cooper@gmail.com>
Date: Mon, 29 Dec 2008 22:27:38 -0800
Subject: [PATCH] Adding a :counter_cache attribute to the has_many association to use custom cache column
---
activerecord/lib/active_record/associations.rb | 10 +++++++---
.../associations/has_many_association.rb | 2 +-
.../associations/has_many_through_association.rb | 2 +-
.../associations/belongs_to_associations_test.rb | 14 ++++++++++++++
@AquaGeek
AquaGeek / handle_complex_includes.diff
Created May 14, 2011 02:09
Rails Lighthouse ticket #1860
From 10a8510887fb5d39b39ac3cb8540451a9cb01aa0 Mon Sep 17 00:00:00 2001
From: Brian Underwood <bunderwood@rbmtechnologies.com>
Date: Thu, 14 Oct 2010 09:34:03 -0400
Subject: [PATCH] Take care of case where different includes() (such as when calling a scope on an assocation) combine as an Array and Hash but are addressing the same assocation. [#1860 state:resolved]
---
activerecord/lib/active_record/associations.rb | 14 +++++++++-
.../cases/associations/twice_eager_loaded_test.rb | 27 ++++++++++++++++++++
activerecord/test/fixtures/price_estimates.yml | 2 +
activerecord/test/models/pirate.rb | 2 +-
@AquaGeek
AquaGeek / export_ordered_hash.diff
Created May 14, 2011 02:09
Rails Lighthouse ticket #1895
From 8d1f611225e72139cdc0615fcb79cdb4fb88f234 Mon Sep 17 00:00:00 2001
From: Damien MATHIEU <dmathieu@dmathieu.local>
Date: Fri, 6 Feb 2009 14:46:36 +0100
Subject: [PATCH] Add methods to_xml and to_json to OrderedHash.
---
activesupport/lib/active_support/ordered_hash.rb | 8 ++++++++
activesupport/test/ordered_hash_test.rb | 9 +++++++++
2 files changed, 17 insertions(+), 0 deletions(-)