Permalink
Browse files

Latest ActiveSupport replaces metaclass with singleton_class

  • Loading branch information...
Carl Lerche
Carl Lerche committed Mar 11, 2010
1 parent 939b31d commit 915606d10923e3c5de6d904b58eb13b9b5658ea4
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/arel/session.rb
View
@@ -11,13 +11,13 @@ def start
begin
@started = true
@instance = manufacture
- metaclass.class_eval do
+ singleton_class.class_eval do
undef :new
alias_method :new, :instance
end
yield
ensure
- metaclass.class_eval do
+ singleton_class.class_eval do
undef :new
alias_method :new, :manufacture
end

0 comments on commit 915606d

Please sign in to comment.