Class: ActionController::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyamf/rails/rails2_bootstrap.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#render_with_amf(options = nil, extra_options = {}, &block) ⇒ Object

:nodoc:



25
26
27
28
29
30
31
32
33
# File 'lib/rubyamf/rails/rails2_bootstrap.rb', line 25

def render_with_amf(options = nil, extra_options ={}, &block)
  if options && options.is_a?(Hash) && options.has_key?(:amf)
    @performed_render = true
    @amf_response = options[:amf]
    @mapping_scope = options[:class_mapping_scope] || options[:mapping_scope] || nil
  else
    render_without_amf(options, extra_options, &block)
  end
end