spree/spree — pull request #2011 by jeebster (2012-09-25 16:54:16+00:00)
Title: Abstract admin product autocomplete to model method

I've had to perform many custom tweaks to the formatting of the admin product autocomplete dropdown label. I've abstracted this to a method on variant where the formatting can be easily overridden and tweaked as desired, and this method is included in the admin products controller json_data. This way, the hash can be easily accessed via javascript, and easily tweaked in a class_eval in ruby.