Sha256: ffe03e7e60f398be9a8035ee9fde18b33160b754a18b26473d1338f979246b6a
Contents?: true
Size: 375 Bytes
Versions: 19
Compression:
Stored size: 375 Bytes
Contents
class ThinkingSphinx::ActiveRecord::Attribute::Values def initialize(attribute) @attribute = attribute end def value_for(instance) object = column.__stack.inject(instance) { |object, name| object.nil? ? nil : object.send(name) } object.nil? ? nil : object.send(column.__name) end private def column @attribute.columns.first end end
Version data entries
19 entries across 19 versions & 1 rubygems