Class ThinkingSphinx::Property
In: lib/thinking_sphinx/property.rb
Parent: Object

Methods

Attributes

admin  [RW] 
alias  [RW] 
associations  [RW] 
columns  [RW] 
faceted  [RW] 
model  [RW] 

Public Class methods

Public Instance methods

Get the part of the GROUP BY clause related to this attribute - if one is needed. If not, all you‘ll get back is nil. The latter will happen if there isn‘t actually a real column to get data from, or if there‘s multiple data values (read: a has_many or has_and_belongs_to_many association).

Returns the unique name of the attribute - which is either the alias of the attribute, or the name of the only column - if there is only one. If there isn‘t, there should be an alias. Else things probably won‘t work. Consider yourself warned.

[Validate]