Sha256: ae38136e872839c2ad7a448fa3f2b2edda89dd86304464282b4ede69e2ba80a1

Contents?: true

Size: 456 Bytes

Versions: 4

Compression:

Stored size: 456 Bytes

Contents

require 'governor_thinking_sphinx/rails'
require 'governor/controllers/methods'

thinking_sphinx = Governor::Plugin.new('thinking_sphinx')

thinking_sphinx.register_model_callback do |base|
  base.define_index do
    indexes title
    indexes description
    indexes post
    has created_at
    set_property :delta => true
  end
end

thinking_sphinx.set_routes do
  collection do
    get 'search'
  end
end

Governor::PluginManager.register thinking_sphinx

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
governor_thinking_sphinx-0.1.3 lib/governor_thinking_sphinx.rb
governor_thinking_sphinx-0.1.2 lib/governor_thinking_sphinx.rb
governor_thinking_sphinx-0.1.1 lib/governor_thinking_sphinx.rb
governor_thinking_sphinx-0.1.0 lib/governor_thinking_sphinx.rb