Flowdock
method

app_and_env_for

Importance_0
v3.2.3 - Show latest stable - 0 notes - Class: Runner
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.