Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Official Thinking Sphinx support #13

Closed
rainerborene opened this issue Aug 28, 2013 · 0 comments
Closed

Official Thinking Sphinx support #13

rainerborene opened this issue Aug 28, 2013 · 0 comments

Comments

@rainerborene
Copy link

Any chance to get full support for thinking sphinx? I'm using this ugly hack to make it partially work. Btw, currently using thinking-sphinx gem locked on 2.0.14 version.

module Makara
  class << self
    def register_adapter(adapter)
      @adapters ||= []
      @adapters << adapter unless @adapters.map(&:id).include?(adapter.id)
      @adapters = @adapters.sort_by(&:id)
    end
  end
end

module ActiveRecord
  module ConnectionAdapters
    class MakaraAdapter
      def instance_variable_get(symbol)
        if symbol == :@config
          @current_wrapper.instance_variable_get :@config
        else
          super symbol
        end
      end
    end
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants