Sha256: 53829136c05e03f990e04eca085f359f50a1ea4d0933609a7a01a122d2b1e5e1

Contents?: true

Size: 636 Bytes

Versions: 17

Compression:

Stored size: 636 Bytes

Contents

# frozen_string_literal: true

class ThinkingSphinx::ActiveRecord::Attribute <
  ThinkingSphinx::ActiveRecord::Property

  delegate :type, :type=, :multi?, :updateable?, :to => :typist
  delegate :value_for,                           :to => :values

  private

  def typist
    @typist ||= ThinkingSphinx::ActiveRecord::Attribute::Type.new self, @model
  end

  def values
    @values ||= ThinkingSphinx::ActiveRecord::Attribute::Values.new self
  end
end

require 'thinking_sphinx/active_record/attribute/sphinx_presenter'
require 'thinking_sphinx/active_record/attribute/type'
require 'thinking_sphinx/active_record/attribute/values'

Version data entries

17 entries across 17 versions & 1 rubygems

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