Skip to content

Instantly share code, notes, and snippets.

@AquaGeek
AquaGeek / autosave_link_unlink.diff
Created May 14, 2011 02:18
Rails Lighthouse ticket #4521
@AquaGeek
AquaGeek / deprecate_render_text_with_proc.diff
Created May 14, 2011 02:18
Rails Lighthouse ticket #4554
From 973908db21410d2f7099a2efe275224028ecc3cc Mon Sep 17 00:00:00 2001
From: Trotter Cashion <[email protected]>
Date: Mon, 13 Sep 2010 20:01:05 -0400
Subject: [PATCH] We deprecated render :text => lambda { ... } [#4554 state:resolved]
---
actionpack/lib/action_view/render/rendering.rb | 3 +++
actionpack/test/abstract/render_test.rb | 8 ++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
@AquaGeek
AquaGeek / add_start_events_2.diff
Created May 14, 2011 02:18
Rails Lighthouse ticket #4594
From 65f8a6adcc14d576446a4edfe1e98496b8b898bd Mon Sep 17 00:00:00 2001
From: Justin George <[email protected]>
Date: Thu, 13 May 2010 14:07:40 -0700
Subject: [PATCH] all instrumentation events that include a block now fire a start event before the block is yielded [#4594 state:resolved]
In many situations, we want to instrument when something starts, as well as when it has finished.
A canonical example is AR transactions, which are helpful when they log which model started/ended them.
---
.../active_support/notifications/instrumenter.rb | 13 ++++--
@AquaGeek
AquaGeek / 4598_code_fix_against_rails_edge.diff
Created May 14, 2011 02:18
Rails Lighthouse ticket #4598
From ee3077e0acecc2f3eb90070932b2a6b219415481 Mon Sep 17 00:00:00 2001
From: Neeraj Singh <[email protected]>
Date: Sat, 15 May 2010 19:55:41 -0400
Subject: [PATCH] default_scope treats hashes and relations
inconsistently when overwriting
[#4598 state:resolved]
---
.../lib/active_record/relation/query_methods.rb | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
@AquaGeek
AquaGeek / routes.txt
Created May 14, 2011 02:19
Rails Lighthouse ticket #4759
(in /home/augustl/code/sites/gitorious)
root / {:action=>"index", :controller=>"site"}
commits_event GET /events/:id/commits(.:format) {:action=>"commits", :controller=>"events"}
GET /events(.:format) {:action=>"index", :controller=>"events"}
events POST /events(.:format)
From 6fc75922e6086e41f966daeaaf64f88c2289e0b2 Mon Sep 17 00:00:00 2001
From: Andrew White <[email protected]>
Date: Sat, 26 Jun 2010 01:54:13 +0100
Subject: [PATCH] URL fragments should not have safe characters escaped. Ref: Appendix A, http://tools.ietf.org/rfc/rfc3986.txt
---
.../lib/action_dispatch/routing/route_set.rb | 2 +-
actionpack/test/controller/url_for_test.rb | 12 +++++++++---
2 files changed, 10 insertions(+), 4 deletions(-)
@AquaGeek
AquaGeek / attr_accessor_with_default-fix.diff
Created May 14, 2011 02:19
Rails Lighthouse ticket #4776
From 6b156345e7d52b632a260070149ff06a428313f7 Mon Sep 17 00:00:00 2001
From: Serge Balyuk <[email protected]>
Date: Sun, 20 Mar 2011 15:19:00 +0200
Subject: [PATCH] Fixed attr_accessor_with_default causing "singleton can't be dumped" TypeError on object marshaling [#4776 state:resolved]
---
.../core_ext/module/attr_accessor_with_default.rb | 18 +++++++++++-------
.../module/attr_accessor_with_default_test.rb | 11 +++++++++++
2 files changed, 22 insertions(+), 7 deletions(-)
From 00f4dc531d8335100cd12096f455fc1999ac110c Mon Sep 17 00:00:00 2001
From: Steve Purcell <[email protected]>
Date: Tue, 22 Jun 2010 21:50:58 +0100
Subject: [PATCH] Add test case for ticket 4808, relating to parsing URL encoded params
https://rails.lighthouseapp.com/projects/8994/tickets/4808-textarea-input-silently-truncated-in-238
---
.../request/url_encoded_params_parsing_test.rb | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
From 91ccb92723925181c26c0edfb4cf621e2e6dfc20 Mon Sep 17 00:00:00 2001
From: Jan Maurits Faber <[email protected]>
Date: Thu, 11 Nov 2010 17:35:21 +0100
Subject: [PATCH 3/3] Disable Erb escaping non-HTML templates
---
.../lib/action_view/template/handlers/erb.rb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/actionpack/lib/action_view/template/handlers/erb.rb b/actionpack/lib/action_view/template/handlers/erb.rb
@AquaGeek
AquaGeek / migrations_with_prefix_suffix.diff
Created May 14, 2011 02:19
Rails Lighthouse ticket #4961
From 3dfb6f3fcb6c149038ad282812711ed677019b5f Mon Sep 17 00:00:00 2001
From: wadestebbings <[email protected]>
Date: Thu, 24 Jun 2010 15:43:26 -0500
Subject: [PATCH] use prefix/suffix when searching for schema_migrations
---
.../abstract/schema_statements.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb