class FeatureSelection < ActiveRecord::Base
  belongs_to :feature
  belongs_to :basket_item
  def description
    d = feature.name + ': '
    case feature.ui_type
    when Feature::TEXT_FIELD, Feature::TEXT_AREA
      name += customer_text
    when Feature::CHECK_BOX
      name += checked ? 'Yes' : 'No'
    when Feature::DROP_DOWN, Feature::RADIO_BUTTONS
      name += choice.name
    end
  end
end

class FeatureSelection < ActiveRecord::Base
  belongs_to :feature
  belongs_to :basket_item
  def description
    d = feature.name + ': '
    case feature.ui_type
    when Feature::TEXT_FIELD, Feature::TEXT_AREA
      d += customer_text
    when Feature::CHECK_BOX
      d += checked ? 'Yes' : 'No'
    when Feature::DROP_DOWN, Feature::RADIO_BUTTONS
      d += choice.name
    end
  end
end

Fix code: appending text to the wrong variable name
Fix code: appending text to the wrong variable name
