test

Ruby code posted
created at 18 Jan 02:08, updated at 18 Jan 02:09

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# app/models/trinket.rb
class Trinket < ActiveRecord::Base
  searchable do
    text :name
    integer :code
  end
end

# vendor/extensions/customer/app/models/trinket.rb
class Trinket
  searchable do
    text :description
  end
end
246 Bytes in 2 ms with coderay