Class: ThinkingSphinx::ActiveRecord::Field
Instance Attribute Summary
Attributes inherited from Property
#columns, #model, #options
Instance Method Summary
collapse
#infixing?, #prefixing?
Methods inherited from Property
#initialize, #name, #rebase, #source_type
#facet?, #multi?, #type
Instance Method Details
#file? ⇒ Boolean
7
8
9
|
# File 'lib/thinking_sphinx/active_record/field.rb', line 7
def file?
options[:file]
end
|
#with_attribute? ⇒ Boolean
11
12
13
|
# File 'lib/thinking_sphinx/active_record/field.rb', line 11
def with_attribute?
options[:sortable] || options[:facet]
end
|
#wordcount? ⇒ Boolean
15
16
17
|
# File 'lib/thinking_sphinx/active_record/field.rb', line 15
def wordcount?
options[:wordcount]
end
|