static public Method

TestProcess.included(base)

There's no documentation for this item.

Source Code

# File action_controller/test_process.rb, line 360
def self.included(base)
  # execute the request simulating a specific http method and set/volley the response
  %w( get post put delete head ).each do |method|
    base.class_eval "def \#{method}(action, parameters = nil, session = nil, flash = nil)\n@request.env['REQUEST_METHOD'] = \"\#{method.upcase}\" if defined?(@request)\nprocess(action, parameters, session, flash)\nend\n", __FILE__, __LINE__
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.