lib/thinking_sphinx/index.rb in ebeigarts-thinking-sphinx-1.1.22 vs lib/thinking_sphinx/index.rb in ebeigarts-thinking-sphinx-1.2.10
- old
+ new
@@ -39,13 +39,13 @@
def attributes
@sources.collect { |source| source.attributes }.flatten
end
def name
- self.class.name(@model)
+ self.class.name_for @model
end
- def self.name(model)
+ def self.name_for(model)
model.name.underscore.tr(':/\\', '_')
end
def prefix_fields
fields.select { |field| field.prefixes }