Sha256: 87b976f1b58e5b2b9226c068dce7e9b6065181bc9654eaf7d2ce7c06e4b0d2ba
Contents?: true
Size: 450 Bytes
Versions: 2
Compression:
Stored size: 450 Bytes
Contents
module ThinkingSphinx module ActiveRecord module AttributeUpdates private def updatable_attributes(index) index.attributes.select { |attrib| attrib.updatable? } end def attribute_values_for_index(index) updatable_attributes(index).inject({}) { |hash, attrib| hash[attrib.unique_name.to_s] = attrib.live_value self hash } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
skalee-thinking-sphinx-1.3.14.2 | lib/thinking_sphinx/active_record/attribute_updates.rb |
skalee-thinking-sphinx-1.3.14.1 | lib/thinking_sphinx/active_record/attribute_updates.rb |