Skip to content

Instantly share code, notes, and snippets.

@AquaGeek
AquaGeek / inherit_named_scopes.diff
Created May 14, 2011 02:18
Rails Lighthouse ticket #3766
From 95f6d53797f3e37c23f2e34479786f1beb677e97 Mon Sep 17 00:00:00 2001
From: Ryan Burrows <[email protected]>
Date: Mon, 14 Feb 2011 12:43:57 -0800
Subject: [PATCH] Inherit named scopes created at runtime
---
activerecord/lib/active_record/named_scope.rb | 4 ++++
activerecord/test/cases/named_scope_test.rb | 5 +++++
2 files changed, 9 insertions(+), 0 deletions(-)
From 67eb80e72d8d4782334aabf3b120adf6fdca5cda Mon Sep 17 00:00:00 2001
From: Rodrigo Rosenfeld Rosas <[email protected]>
Date: Thu, 25 Feb 2010 00:29:43 -0300
Subject: [PATCH] Include support for :full_message option to validations.
---
activemodel/lib/active_model/errors.rb | 54 +++++++++++++------
.../lib/active_model/validations/acceptance.rb | 2 +-
.../lib/active_model/validations/confirmation.rb | 2 +-
.../lib/active_model/validations/exclusion.rb | 2 +-
From d5ae7531f57c60af879e31616763cb4a031e75c7 Mon Sep 17 00:00:00 2001
From: corey <[email protected]>
Date: Thu, 7 Oct 2010 18:41:26 -0700
Subject: [PATCH] change distance_of_time_to_words to use div instead of /
---
actionpack/lib/action_view/helpers/date_helper.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb
@AquaGeek
AquaGeek / 4091_session.zip
Created May 14, 2011 02:18
Rails Lighthouse ticket #4091
@AquaGeek
AquaGeek / 4249.diff
Created May 14, 2011 02:18
Rails Lighthouse ticket #4249
From 9e22cc9cde69e8da290b56ad3e99b3cec72ecad8 Mon Sep 17 00:00:00 2001
From: rohit <[email protected]>
Date: Fri, 28 Jan 2011 16:24:49 +0530
Subject: [PATCH] Add a wrapper for rails runner [#4249 state:committed]
---
railties/lib/rails/commands/runner.rb | 5 ++++-
.../generators/rails/app/templates/script/runner | 4 ++++
railties/test/application/runner_test.rb | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
@AquaGeek
AquaGeek / 4377-fibers-1.diff
Created May 14, 2011 02:18
Rails Lighthouse ticket #4337
From 3c9c6ac3bd070d456643ba20ac9d689379bb0d8d Mon Sep 17 00:00:00 2001
From: Mike Perham <[email protected]>
Date: Wed, 7 Apr 2010 16:19:55 -0500
Subject: [PATCH] Initial changes to support Fibers in 1.9 [#4337]
---
Gemfile | 1 +
.../abstract/connection_pool.rb | 118 ++++++++++++++++----
activerecord/test/cases/connection_pool_test.rb | 93 +++++++++++++++-
railties/lib/rails/application/configuration.rb | 12 ++-
@AquaGeek
AquaGeek / 4346.diff
Created May 14, 2011 02:18
Rails Lighthouse ticket #4346
From 59043a3a278d71755223ed8eef09171e2a74b9df Mon Sep 17 00:00:00 2001
From: Aditya Sanghi <[email protected]>
Date: Wed, 13 Oct 2010 19:57:21 +0530
Subject: [PATCH] Multiparameter attribute fixes for POLA failures
---
activerecord/lib/active_record/base.rb | 81 +++++++++++------
activerecord/test/cases/base_test.rb | 146 +++++++++++++++++++++++++++++--
2 files changed, 188 insertions(+), 39 deletions(-)
@AquaGeek
AquaGeek / foreign_keys-2.diff
Created May 14, 2011 02:18
Rails Lighthouse ticket #4347
From ef0c4e8af82f7c49c6b10c5b4d3cfb5021d90133 Mon Sep 17 00:00:00 2001
From: Matthew <[email protected]>
Date: Wed, 7 Apr 2010 23:13:21 -0700
Subject: [PATCH 1/5] implementation without tests
---
.../abstract/schema_definitions.rb | 31 +++++++
.../abstract/schema_statements.rb | 88 ++++++++++++++++++++
.../connection_adapters/mysql_adapter.rb | 29 +++++++
.../connection_adapters/postgresql_adapter.rb | 48 +++++++++--
@AquaGeek
AquaGeek / has_many_through_self.diff
Created May 14, 2011 02:18
Rails Lighthouse ticket #4361
From fda68b76399ec2e952b0e703692d0fc295623626 Mon Sep 17 00:00:00 2001
From: Joe Hannon <[email protected]>
Date: Sun, 2 May 2010 16:26:02 -0700
Subject: [PATCH] add test which fails for has_many through self join [#4361 state:open]
---
.../has_many_through_associations_test.rb | 7 +++++++
activerecord/test/models/person.rb | 1 +
2 files changed, 8 insertions(+), 0 deletions(-)
@AquaGeek
AquaGeek / 0001-activemodel-serializers-js.patch
Created May 14, 2011 02:18
Rails Lighthouse ticket #4520
From 16a5b1da6c9926f4cede1109df769e558884842e Mon Sep 17 00:00:00 2001
From: John Firebaugh <[email protected]>
Date: Wed, 6 Apr 2011 14:11:48 -0700
Subject: [PATCH] ActiveModel::Serializers::JSON#as_json should call #as_json on the serializable_hash.
[#4520 state:resolved]
---
activemodel/lib/active_model/serializers/json.rb | 2 +-
.../cases/serializers/json_serialization_test.rb | 10 +++++++++-
2 files changed, 10 insertions(+), 2 deletions(-)