[Rails-core] Re: db/schema.rb

2007-11-14 Thread Jim Meyer
On Nov 13, 2007 8:17 PM, Stephen Touset <[EMAIL PROTECTED]> wrote: > Reading the Rails commit logs, I see that db/schema.rb's purpose has > been clarified. It's intended to be the authoritative location for > your database schema, and rake tasks like db:reset use it to rebuild > the schema rather

[Rails-core] [PATCH] Extend Hashes with + operator

2007-11-13 Thread Jim Meyer
I ran into a case where I needed to merge an array of hashes and was disappointed that I couldn't use ActiveSupport's Enumerable#sum extension solely for want of Hash#+ ... so I added it as an alias to Hash#merge for fun. Given: a = {:a => 1, :b => 2} b = {:b => 3, :c => 4} c = {:a => 2, :

[Rails-core] [PATCH] ActionController request domain/subdomains bug (Ticket 9479)

2007-11-06 Thread Jim Meyer
A while back I tripped over a case where ActionController flakes when handed a dotted-quad hostname behaves oddly; it (properly) asserts that the domain name is nil, but happily tells you the subdomains are the first two quads. Like so: > console >> @request = ActionController::TestRequest.new =>