Skip to content

Commit

Permalink
Allow a methods parameter to be passed to /variants/:id/reset.json
Browse files Browse the repository at this point in the history
  • Loading branch information
winton committed Nov 8, 2010
1 parent b2f5ca6 commit d77ffcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/a_b/controller/api.rb
Expand Up @@ -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
Expand Down

0 comments on commit d77ffcc

Please sign in to comment.