Flowdock
method

app_and_env_for

Importance_0
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: Runner

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

app_and_env_for(action, n) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/examples/performance.rb, line 47
  def self.app_and_env_for(action, n)
    env = Rack::MockRequest.env_for("/")
    env.merge!('n' => n, 'rack.input' => StringIO.new(''), 'rack.errors' => $stdout)
    app = lambda { |env| BasePostController.action(action).call(env) }
    return app, env
  end
Register or log in to add new notes.