Permalink
Browse files

Fixing Source to use ActiveRecord::Base#sphinx_name, instead of dupli…

…cating code. Thanks to Martin Sarsale.
  • Loading branch information...
pat committed Oct 10, 2009
1 parent 4780012 commit b9c2b6aabed7c9732da8887dc05b1540ee9b527b
Showing with 2 additions and 1 deletion.
  1. +1 −0 README.textile
  2. +1 −1 lib/thinking_sphinx/source.rb
View
@@ -155,3 +155,4 @@ Since I first released this library, there's been quite a few people who have su
* Ward Bekker
* Brian Terlson
* Christian Aust
+* Martin Sarasale
@@ -33,7 +33,7 @@ def initialize(index, options = {})
end
def name
- @model.name.underscore.tr(':/\\', '_')
+ @model.sphinx_name
end
def to_riddle_for_core(offset, index)

0 comments on commit b9c2b6a

Please sign in to comment.