diff options
Diffstat (limited to 'vendor/plugins/thinking-sphinx/lib/thinking_sphinx/class_facet.rb')
| -rw-r--r-- | vendor/plugins/thinking-sphinx/lib/thinking_sphinx/class_facet.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/class_facet.rb b/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/class_facet.rb new file mode 100644 index 0000000..cb301b8 --- /dev/null +++ b/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/class_facet.rb | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | module ThinkingSphinx | ||
| 2 | class ClassFacet < ThinkingSphinx::Facet | ||
| 3 | def name | ||
| 4 | :class | ||
| 5 | end | ||
| 6 | |||
| 7 | def attribute_name | ||
| 8 | "class_crc" | ||
| 9 | end | ||
| 10 | |||
| 11 | def value(object, attribute_value) | ||
| 12 | object.class.name | ||
| 13 | end | ||
| 14 | end | ||
| 15 | end | ||
