Permalink
Browse files

Updating name on put /tests.json

  • Loading branch information...
1 parent f752f8c commit b511cf81df66036912ce421797d62730d10d3e34 @winton committed Oct 29, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/a_b/controller/api.rb
@@ -208,6 +208,7 @@
if @user
@test = @user.tests.find_by_id params[:test][:id]
if @test
+ @test.update_attribute :name, params[:test][:name]
@test.variants.each_with_index do |variant, i|
old_variant = params[:test][:old_variants][variant.id.to_s]
if old_variant && old_variant.empty?

0 comments on commit b511cf8

Please sign in to comment.