Sha256: 8ee6f814b515a608fe0ad9378958bbcc47ff297215ef511b107a4244bbeb52c6

Contents?: true

Size: 339 Bytes

Versions: 6

Compression:

Stored size: 339 Bytes

Contents

module AsyncFuturize
  class FuturizeController
      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

6 entries across 6 versions & 1 rubygems

Version Path
async_futurize-0.1.18 app/controllers/async_futurize/futurize_controller.rb
async_futurize-0.1.17 app/controllers/async_futurize/futurize_controller.rb
async_futurize-0.1.16 app/controllers/async_futurize/futurize_controller.rb
async_futurize-0.1.15 app/controllers/async_futurize/futurize_controller.rb
async_futurize-0.1.14 app/controllers/async_futurize/futurize_controller.rb
async_futurize-0.1.13 app/controllers/async_futurize/futurize_controller.rb