Sha256: a7d8fe1ca4a1a10985342e0ac491a4f831eb7ef4dd6136a46a057fe2a20d294d

Contents?: true

Size: 363 Bytes

Versions: 2

Compression:

Stored size: 363 Bytes

Contents

module AsyncFuturize
  class FuturizeController < ApplicationController
      def loadComponent
        locals = { component: params[:component_to_load], component_params: params[:component_params] }
        render json: { component: params[:component_to_load], html: render_to_string(partial: './futurize_component_ajax', locals: locals) }
      end
  end
end
  

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
async_futurize-0.1.12 app/controllers/async_futurize/futurize_controller.rb
async_futurize-0.1.10 app/controllers/async_futurize/futurize_controller.rb