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
brisk-bills-0.8.2 vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
brisk-bills-0.8.1 vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.15 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.14 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.13 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.12 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.11 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.10 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.9 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.8 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.7 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.6 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.5 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
brisk-bills-0.7.0 vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.4 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.3 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.2 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.1 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.24.0 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb
six-updater-web-0.23.7 lib/six-updater-web/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb