class Wco::PublishersController
def do_run
def do_run @publisher = Wco::Publisher.find params[:id] authorize! :do_run, @publisher @publisher.props = OpenStruct.new( JSON.parse params[:publisher][:props] ) # @publisher.do_run binding @publisher.do_run flash_notice "Probably ok" redirect_to action: 'index' end