diff options
author | Carl Lerche <carllerche@mac.com> | 2010-03-11 11:15:52 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-03-11 11:15:52 -0800 |
commit | 915606d10923e3c5de6d904b58eb13b9b5658ea4 (patch) | |
tree | a151baa797491c25580129de63eaa6a7058e4e2e | |
parent | 939b31da148aaa518640dc5c1a67d4e57febf6f1 (diff) | |
download | rails-915606d10923e3c5de6d904b58eb13b9b5658ea4.tar.gz rails-915606d10923e3c5de6d904b58eb13b9b5658ea4.tar.bz2 rails-915606d10923e3c5de6d904b58eb13b9b5658ea4.zip |
Latest ActiveSupport replaces metaclass with singleton_class
-rw-r--r-- | lib/arel/session.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/session.rb b/lib/arel/session.rb index d844cd7423..c7fcc53a3b 100644 --- a/lib/arel/session.rb +++ b/lib/arel/session.rb @@ -11,13 +11,13 @@ module Arel 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 |