Skip to content

Instantly share code, notes, and snippets.

@craigmcnamara
Created November 10, 2012 04:22
Show Gist options
  • Select an option

  • Save craigmcnamara/4049884 to your computer and use it in GitHub Desktop.

Select an option

Save craigmcnamara/4049884 to your computer and use it in GitHub Desktop.
Responder Override
class SpecialResponderController < ActionController::Base
protected
def self.responder
lambda do |controller, resources, options|
if controller.is_special?
SpecialResponder.call(controller, resources, options)
else
super.call(controller, resources, options)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment