Browse files

Allow a methods parameter to be passed to /variants/:id/reset.json

  • Loading branch information...
1 parent b2f5ca6 commit d77ffcc19efb747bbb8a32dbc82e90f0414f3980 @winton committed Nov 8, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/a_b/controller/api.rb
View
1 lib/a_b/controller/api.rb
@@ -285,6 +285,7 @@
@variant.update_attribute(:data, nil)
@variant.to_json(
:include => symbolize(params[:include]),
+ :methods => symbolize(params[:methods]),
:only => symbolize(params[:only])
)
else

0 comments on commit d77ffcc

Please sign in to comment.