Sha256: 4b1ec41ef75e7650838063a79b35a4308e0a33c2714636892eb8076e3979b858
Contents?: true
Size: 741 Bytes
Versions: 8
Compression:
Stored size: 741 Bytes
Contents
module ActiveScaffold # wrap the action rendering for ActiveScaffold controllers module Render def render(*args, &block) if params[:adapter] and @rendering_adapter.nil? @rendering_adapter = true # recursion control # if we need an adapter, then we render the actual stuff to a string and insert it into the adapter template opts = args.blank? ? Hash.new : args.first super :partial => params[:adapter][1..-1], :locals => {:payload => render_to_string(opts.merge(:layout => false), &block).html_safe}, :use_full_path => true, :layout => false, :content_type => :html @rendering_adapter = nil # recursion control else super end end end end
Version data entries
8 entries across 8 versions & 1 rubygems