Sha256: 925e1d1309a21f9eec2fe2d5c53b461923a5362136357c79e9909ec6090a4af8

Contents?: true

Size: 262 Bytes

Versions: 5

Compression:

Stored size: 262 Bytes

Contents

class Article < ActiveRecord::Base

  searchable do
    integer  :id
    text     :title              # fulltext
    string   :title              # order_by
    text     :content            #fulltext
    integer  :category_id
    time     :updated_at
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oss_active_record-0.3.1 test/dummy/app/models/article.rb
oss_active_record-0.3.0 test/dummy/app/models/article.rb
oss_active_record-0.2.0 test/dummy/app/models/article.rb
oss_active_record-0.1.2 test/dummy/app/models/article.rb
oss_active_record-0.1.1 test/dummy/app/models/article.rb