method

app_and_env_for

rails latest stable - 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 available.

# 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