diff options
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/support/models/box.rb')
| -rw-r--r-- | vendor/plugins/thinking-sphinx/features/support/models/box.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/box.rb b/vendor/plugins/thinking-sphinx/features/support/models/box.rb new file mode 100644 index 0000000..bd948c4 --- /dev/null +++ b/vendor/plugins/thinking-sphinx/features/support/models/box.rb | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | class Box < ActiveRecord::Base | ||
| 2 | define_index do | ||
| 3 | indexes width, :as => :width_field | ||
| 4 | |||
| 5 | has width, length, depth | ||
| 6 | has [width, length, depth], :as => :dimensions | ||
| 7 | end | ||
| 8 | end | ||
