lib/thinking_sphinx/rails_additions.rb in hawkerb-thinking-sphinx-1.3.17 vs lib/thinking_sphinx/rails_additions.rb in hawkerb-thinking-sphinx-1.3.18

- old
+ new

@@ -135,16 +135,16 @@ ThinkingSphinx::ClassAttributeMethods ) unless Class.respond_to?(:cattr_reader) module ThinkingSphinx module MetaClass - def metaclass + def singleton_class class << self self end end end end -unless Object.new.respond_to?(:metaclass) +unless Object.new.respond_to?(:singleton_class) Object.send(:include, ThinkingSphinx::MetaClass) end