This project is archived and is in readonly mode.

#4867 ✓invalid
Caleb Perkins

Metal apps not being called

Reported by Caleb Perkins | June 15th, 2010 @ 08:41 PM

My metal apps are no longer being called in Rails 3 beta 4, when it worked fine in beta 3. To my understanding, Rails loads metal apps first and passes down control when they return an X-Cascade header. To demonstrate:

Allow the metal piece to run in isolation

require File.expand_path('../../../config/environment', FILE) unless defined?(Rails)

class Poller

def self.call(env)

raise "metal!"
....

end

end

class AuctionsController

def index

raise "not metal"
...

end

end

returns "not metal" when in beta 3 it would return metal. Is there a new way to use metal apps?

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages