Override attribute_for_inspect


(Aaron Russell) #1

The serialized data looks hideous when inspecting a node object in the console. Should override Rails’ attribute_for_inspect method, with something like:

def attribute_for_inspect(attr_name)
  if attr_name.to_s == 'field_store'
    fields.keys.inspect
  else
    super
  end
end

(Aaron Russell) #2

Fixed in commit:


(Aaron Russell) #3