Sha256: 8a84e487bdac7d2d1a9c7d587acfdf84d34bb6edeba18df1cb2adfa3a17b245b

Contents?: true

Size: 272 Bytes

Versions: 1

Compression:

Stored size: 272 Bytes

Contents

class Book < ActiveRecord::Base
  ThinkingSphinx::Callbacks.append(
    self, :behaviours => [:sql, :deltas, :updates]
  )

  define_index do
    indexes title, author

    set_property :delta => ThinkingSphinx::Deltas::ResqueDelta
  end if respond_to?(:define_index)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ts-resque-delta-2.1.0 spec/internal/app/models/book.rb