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