orbit-4-2/app/controllers/store_confirmation_controll...

13 lines
326 B
Ruby
Raw Normal View History

2014-02-27 09:34:49 +00:00
class StoreConfirmationController < ApplicationController
def confirm
if params[:site_token]
site = Site.first
site.confirm_store(params[:site_token])
render :json => {"success" => "true"}
else
render :json => {"success" => "false"}
end
end
end