Sha256: b4faf7539d5e1c8274b86d5dc4fd76bf20b883a49cb71a2b6ca9bd7365cc5a2e

Contents?: true

Size: 846 Bytes

Versions: 103

Compression:

Stored size: 846 Bytes

Contents

module ActionController #:nodoc:
  module Components
    module InstanceMethods
      # Extracts the action_name from the request parameters and performs that action.
      private
        # This is to fix a bug in Rails. 1.2.2 was calling klass.controller_name instead of klass.controller_path, which was in turn setting the params[:controller] => "contacts", instead of params[:controller] => "two/contact". Submitted ticket #7545
        # Namespaces only supported in ActiveScaffold with Rails 1.2.2
        def component_response(options, reuse_response)
          klass    = component_class(options)
          request  = request_for_component(klass.controller_path, options)
          new_response = reuse_response ? response : response.dup

          klass.process_with_components(request, new_response, self)
        end
    end
  end
end

Version data entries

103 entries across 103 versions & 4 rubygems

Version Path
six-updater-web-0.23.6 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.23.5 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.23.4 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.23.3 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.23.2 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.23.1 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.23.0 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.22.4 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.22.3 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.22.2 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.22.1 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.22.0 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.21.6 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.21.5 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.21.4 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.21.3 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.21.2 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.21.1 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.21.0 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.20.8 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb