Skip to content

Instantly share code, notes, and snippets.

From 1b20d98b25241ab4a947dc1315638ed01dd71cb3 Mon Sep 17 00:00:00 2001
From: Elad Meidar <[email protected]>
Date: Mon, 26 Oct 2009 00:45:44 -0400
Subject: [PATCH] Added FormHelper#fields_for_with_index and tests
---
actionpack/lib/action_view/helpers/form_helper.rb | 109 ++++++++++++++++++++-
actionpack/test/template/form_helper_test.rb | 42 ++++++++
2 files changed, 148 insertions(+), 3 deletions(-)
@AquaGeek
AquaGeek / sweeper_thread_patch.diff
Created May 14, 2011 02:17
Rails Lighthouse ticket #3457
From 1030aa7783a5583b85bc78a9724560b894ef9e04 Mon Sep 17 00:00:00 2001
From: Blythe Dunham <[email protected]>
Date: Wed, 4 Nov 2009 12:49:57 -0800
Subject: [PATCH] Use Thread.current for sweeper controller
---
.../lib/action_controller/caching/sweeping.rb | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/actionpack/lib/action_controller/caching/sweeping.rb b/actionpack/lib/action_controller/caching/sweeping.rb
@AquaGeek
AquaGeek / 2-3-stable-unique-constraints.patch
Created May 14, 2011 02:18
Rails Lighthouse ticket #3486
From f259b38eee1b2a14507868e835f2ac187263a616 Mon Sep 17 00:00:00 2001
From: Jordan Brough <[email protected]>
Date: Wed, 11 Nov 2009 13:31:34 -0700
Subject: [PATCH] Friendly ActiveRecord error handling for db-enforced unique constraints
---
activerecord/lib/active_record.rb | 1 +
activerecord/lib/active_record/base.rb | 4 ++
.../connection_adapters/abstract_adapter.rb | 7 +++
.../connection_adapters/mysql_adapter.rb | 12 ++++++
From 85ec41dfdd9d39fe1fc34e714ba261d5244e1cc0 Mon Sep 17 00:00:00 2001
From: Arya Asemanfar <[email protected]>
Date: Sun, 17 Jan 2010 17:27:28 -0800
Subject: [PATCH] fixed reloading new_record resulting in an inconsistent state
---
activerecord/lib/active_record/base.rb | 1 +
.../reloading_new_record_inconsistent_state.rb | 17 +++++++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
create mode 100644 activerecord/test/cases/reloading_new_record_inconsistent_state.rb
From 0d0b7a87006f078ebbf758a935d158302f8fbda9 Mon Sep 17 00:00:00 2001
From: Scott Windsor <[email protected]>
Date: Sun, 29 Nov 2009 23:41:40 -0800
Subject: [PATCH] Adding conditional counter cache
- This adds support for conditional counter caches
- Also adds support for dirty method without_changes to get original
object
---
activerecord/lib/active_record/associations.rb | 31 +++++++++++++++++--
@AquaGeek
AquaGeek / lighthouse_ticket_3523_at_maste.diff
Created May 14, 2011 02:18
Rails Lighthouse ticket #3523
From 0c61aa1b6be696b4b1b8a9b96128b201b2be8393 Mon Sep 17 00:00:00 2001
From: Gavin Stark <[email protected]>
Date: Sat, 19 Mar 2011 10:51:49 -0400
Subject: [PATCH] MySQL schema dumps no longer create VIEWs as if they were TABLEs
---
.../connection_adapters/mysql_adapter.rb | 14 ++++++--------
activerecord/test/cases/schema_dumper_test.rb | 5 +++++
activerecord/test/schema/mysql_specific_schema.rb | 4 ++++
3 files changed, 15 insertions(+), 8 deletions(-)
@AquaGeek
AquaGeek / find-first-last-limit-functionality.diff
Created May 14, 2011 02:18
Rails Lighthouse ticket #3565
From ab85f756b35b8e770b7ed11eb52ddca418cd74d2 Mon Sep 17 00:00:00 2001
From: Stephen Celis <[email protected]>
Date: Sat, 12 Dec 2009 10:08:41 -0600
Subject: [PATCH] Add limit functionality to first and last
If a :limit option exists in a find for :first or :last, return the
first or last number of records specified. The limit can be directly
specified as an argument in the convenience methods
ActiveRecord::Base.first and last. Behavior approximates that of
Array#first and #last.
From c1924d5dec168a5cc97290914bd77f25f4c6afe4 Mon Sep 17 00:00:00 2001
From: ujihisa <[email protected]>
Date: Fri, 8 Oct 2010 12:58:40 -0700
Subject: [PATCH] http://localhost:3000/rails/info/properties shows more details for ease of bug reporting
---
railties/lib/rails/info.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/railties/lib/rails/info.rb b/railties/lib/rails/info.rb
From dbf3666964b8f2a536476cd598492cb3f7aaab47 Mon Sep 17 00:00:00 2001
From: Ary Djmal <[email protected]>
Date: Mon, 11 Oct 2010 15:14:25 -0400
Subject: [PATCH] Added support to action-cache json requests wrapped in a callback (jsonp)
---
.../lib/action_controller/caching/actions.rb | 7 ++++++
actionpack/test/controller/caching_test.rb | 22 +++++++++++++++++++-
2 files changed, 28 insertions(+), 1 deletions(-)
From 395886573c1b838a0951c642728f2a52bb9de77b Mon Sep 17 00:00:00 2001
From: hemant <[email protected]>
Date: Sat, 26 Feb 2011 23:31:26 +0530
Subject: [PATCH] tests to demonstrate inverse_of causes infinite loop with accepts_nested_attributes_for
---
.../associations/inverse_associations_test.rb | 24 +++++++++++++++++++-
activerecord/test/models/bird.rb | 7 +++++-
activerecord/test/models/pirate.rb | 2 +
3 files changed, 31 insertions(+), 2 deletions(-)