Skip to content

Instantly share code, notes, and snippets.

@AquaGeek
AquaGeek / actionmailer-2.3.2.patch
Created May 14, 2011 02:17
Rails Lighthouse ticket #2677
--- actionmailer-2.3.2/lib/action_mailer/base.rb 2009-04-21 15:32:23.000000000 +0200
+++ local/lib/ruby/gems/1.8/gems/actionmailer-2.3.2/lib/action_mailer/base.rb 2009-05-08 14:35:07.000000000 +0200
@@ -233,6 +233,9 @@
# * <tt>default_charset</tt> - The default charset used for the body and to encode the subject. Defaults to UTF-8. You can also
# pick a different charset from inside a method with +charset+.
#
+ # * <tt>default_arguments_charset</tt> - The default charset used for the arguments the ActionMailer was called with. Defaults to UTF-8. You can also
+ # pick a different charset from inside a method with +arguments_charset+.
+ #
# * <tt>default_content_type</tt> - The default content type used for the main part of the message. Defaults to "text/plain". You
From 3a091e4eab98ce62c78b8410b602b85d34eb0bf3 Mon Sep 17 00:00:00 2001
From: Andrew Arrow <[email protected]>
Date: Fri, 12 Jun 2009 01:43:53 +0200
Subject: [PATCH] Add verbose output to rails startup
---
railties/lib/initializer.rb | 83 +++++++++++++++++++++++++++++++++-
railties/lib/rails/plugin/loader.rb | 12 +++++
2 files changed, 92 insertions(+), 3 deletions(-)
@AquaGeek
AquaGeek / 2823-count-scope.diff
Created May 14, 2011 02:17
Rails Lighthouse ticket #2823
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index e358564..7d707e4 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -2095,7 +2095,7 @@ module ActiveRecord #:nodoc:
hash
end
- method_scoping.assert_valid_keys([ :find, :create ])
+ method_scoping.assert_valid_keys([ :find, :create, :count ])
@AquaGeek
AquaGeek / precision_scale_patch_two.diff
Created May 14, 2011 02:17
Rails Lighthouse ticket #2872
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
index 61ee470..89fff48 100644
--- a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
@@ -360,6 +360,7 @@ module ActiveRecord
@definition.column(column_name, column.type,
:limit => column.limit, :default => column.default,
+ :precision => column.precision, :scale => column.scale,
:null => column.null)
@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 <[email protected]>
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 / quoted_date_with_zone_conversion.diff
Created May 14, 2011 02:17
Rails Lighthouse ticket #2946
From 3c7c6aa7399a58fee7c72f3f001f424bef91b8f8 Mon Sep 17 00:00:00 2001
From: Geoff Buesing <[email protected]>
Date: Thu, 23 Jul 2009 08:30:05 -0500
Subject: [PATCH] quoted_date: convert time objects to default_timezone
---
.../connection_adapters/abstract/quoting.rb | 7 +++-
activerecord/test/cases/base_test.rb | 35 ++++++++++++++++++++
activerecord/test/cases/finder_test.rb | 26 ++++++++++++++
3 files changed, 67 insertions(+), 1 deletions(-)
@AquaGeek
AquaGeek / exists-2-3-stable.patch
Created May 14, 2011 02:17
Rails Lighthouse ticket #3165
From ccc8aee0aeac0213cf15abd67ed5dab577899007 Mon Sep 17 00:00:00 2001
From: Rob Olson <[email protected]>
Date: Fri, 23 Oct 2009 19:20:48 -0700
Subject: [PATCH 1/2] Add option to skip record initialization for sql queries.
This fixes an exception caused by queries generated by #exists?
when there is an after_initialize which accesses an attribute
on the record.
---
activerecord/lib/active_record/base.rb | 19 ++++++++++---------
@AquaGeek
AquaGeek / hash_from_xml.diff
Created May 14, 2011 02:17
Rails Lighthouse ticket #3217
From dac554e759dcec715117e55ba0d8d9dc148bd869 Mon Sep 17 00:00:00 2001
From: Niranjan Paranjape <[email protected]>
Date: Fri, 18 Feb 2011 20:48:49 +0530
Subject: [PATCH] Fixing xml to hash conversion with extra attributes on root node along with "type", [#3217]
---
.../active_support/core_ext/hash/conversions.rb | 2 +-
activesupport/test/core_ext/hash_ext_test.rb | 49 ++++++++++++++++++++
2 files changed, 50 insertions(+), 1 deletions(-)
@AquaGeek
AquaGeek / fix-pgsql-bitstrings.patch
Created May 14, 2011 02:17
Rails Lighthouse ticket #3271
From d98ced094bf5f8dcb6c181eb3c020611e2b70ae9 Mon Sep 17 00:00:00 2001
From: Alex Shulgin <[email protected]>
Date: Wed, 23 Mar 2011 18:52:00 +0200
Subject: [PATCH] Fix bitstrings handling in PostgreSQL adapter.
---
.../connection_adapters/postgresql_adapter.rb | 9 +++++----
.../cases/adapters/postgresql/datatype_test.rb | 2 +-
2 files changed, 6 insertions(+), 5 deletions(-)
@AquaGeek
AquaGeek / attributes.diff
Created May 14, 2011 02:17
Rails Lighthouse ticket #3348
From 2931c7aa4ece978d9b53e3ce739663b38d90b048 Mon Sep 17 00:00:00 2001
From: Eric Chapweske <[email protected]>
Date: Fri, 16 Oct 2009 17:29:21 -0700
Subject: [PATCH] Refactoring attribute/typecasting
---
activerecord/lib/active_record.rb | 16 +++
.../attribute_methods/before_type_cast.rb | 13 +--
.../lib/active_record/attribute_methods/query.rb | 20 +---
.../lib/active_record/attribute_methods/read.rb | 49 +--------