Sha256: 9ba11f41aedb09caa6df142b8a7686d81353a529ab09ba062ccc62cfd07d169a
Contents?: true
Size: 666 Bytes
Versions: 7
Compression:
Stored size: 666 Bytes
Contents
module ErpApp class WidgetProxyController < ErpApp::ApplicationController attr_accessor :performed_redirect def index @widget_name = params[:widget_name] @widget_action = params[:widget_action] @uuid = params[:uuid] #get widget params widget_params = nil widget_params = JSON.parse(params[:widget_params]) unless params[:widget_params].blank? widget_obj = "::Widgets::#{@widget_name.camelize}::Base".constantize.new(self, @widget_name, @widget_action, @uuid, widget_params) result = widget_obj.process(@widget_action) result.nil? ? return : (render result) end end end
Version data entries
7 entries across 7 versions & 1 rubygems