| Path: | lib/swxruby/rails_integration/render_decorator.rb |
| Last Update: | Tue Oct 16 00:27:54 -0600 2007 |
# File lib/swxruby/rails_integration/render_decorator.rb, line 5
5: def render_with_swx(options = nil, &block)
6: if options.is_a?(Hash) && options.keys.include?(:swx)
7: swf_bytecode = SwxAssembler.write_swf(
8: options[:swx],
9: params[:debug],
10: SwxGateway.swx_config['compression_level'],
11: params[:url],
12: SwxGateway.swx_config['allow_domain']
13: )
14: send_data(swf_bytecode, :type => 'application/swf', :filename => 'data.swf')
15: else
16: render_without_swx(options, &block)
17: end
18: end