Sha256: c36c5ebc46abc96198ace27861f7f959274399ac26ab29e06bca01f62157ab97

Contents?: true

Size: 315 Bytes

Versions: 17

Compression:

Stored size: 315 Bytes

Contents

# frozen_string_literal: true

class ThinkingSphinx::ActiveRecord::Field <
  ThinkingSphinx::ActiveRecord::Property
  include ThinkingSphinx::Core::Field

  def file?
    options[:file]
  end

  def with_attribute?
    options[:sortable] || options[:facet]
  end

  def wordcount?
    options[:wordcount]
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
thinking-sphinx-5.6.0 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-5.5.1 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-5.5.0 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-5.4.0 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-5.3.0 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-5.2.1 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-5.2.0 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-5.1.0 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-5.0.0 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-4.4.1 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-4.4.0 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-4.3.2 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-4.3.1 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-4.3.0 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-4.2.0 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-4.1.0 lib/thinking_sphinx/active_record/field.rb
thinking-sphinx-4.0.0 lib/thinking_sphinx/active_record/field.rb