Rails 2.2.2 ambitious-activerecord fix

4 views
Skip to first unread message

Ben Hoskings

unread,
Nov 22, 2008, 4:41:50 AM11/22/08
to ambit...@googlegroups.com
Hi folks,

I pushed a small commit to my ambitious-activerecord fork this
afternoon to fix Rails 2.2.2 compatibility.

Rails 2.2.2 removed ActiveRecord::Base.active_connection_name, along
with a few other related methods, in favour of the ConnectionHandler
class, and this broke the active_connection? method in ambitious-
activerecord.

Fortunately ActiveRecord::Base includes the connected? method (in
fact, it hits ConnectionHandler under the covers) that provides the
same functionality. This patch straightens things out.

http://github.com/benhoskings/ambitious_activerecord/commit/ef0e2f12d700dcd5343c0779dd9ae3c8b16911c1

Cheers
Ben Hoskings

Reply all
Reply to author
Forward
0 new messages